From: "Michael W. Ryder" <_mwryder@...> Date: 2008-02-01T12:54:57+09:00 Subject: Re: system command is wierd Junkone wrote: > Hello. this system command works from the command prompt but not from > irb. when i have a space in the directory name, the irb system command > cannot take it. > > irb(main):008:0> system("dir e:\\program files") > Volume in drive E has no label. > Volume Serial Number is N857-EB60 > > Directory of e:\ > > File Not Found > > Directory of E:\Documents and Settings\rocky > > File Not Found > => false > > > When i try this thro command prompt, it works > E:\Documents and Settings\rocky>dir "e:\program files" > Volume in drive E has no label. > Volume Serial Number is B857-EB62 > > Directory of e:\program files > > 26/01/2008 06:41 PM . > 26/01/2008 06:41 PM .. .. Have you tried system('dir e:\\"program files"') ? This works for me in irb.