From: mail02@... (Frank Benoit) Date: 2002-01-02T10:05:11+09:00 Subject: [ruby-talk:30002] Re: Execing command with backquotes Meanwhile I tried a lot. Now I think it is something with the backslash: #commandstring = "dir" # Don't work commandstring = "cmd.exe /c dir" # OK #commandstring = "cmd.exe /c dir /w" # OK #commandstring = "cmd.exe /c dir c:\\Temp" # Don't work #commandstring = "cmd.exe /c \"dir c:\\Temp\"" # Don't work puts commandstring # Execute Command print "Execute : >" returnval = `#{commandstring}` puts "<" # Print Command Output puts "Output : >" + returnval + "<"