J
Junkone
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 <DIR> .
26/01/2008 06:41 PM <DIR> .. ..
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 <DIR> .
26/01/2008 06:41 PM <DIR> .. ..