From: "U.Nakamura" Date: 2003-09-03T21:21:20+09:00 Subject: Re: how to get the output of commands which contain backslashes? Hello, In message "Re: how to get the output of commands which contain backslashes?" on Sep.03,2003 19:01:01, wrote: | Your code | | `command.com /c \for-programs\use\\tidy\\tidy.exe -v` | | works on XP? It's not work. Sorry, I mistook. But | > `command.com /c \\for-programs\use\\tidy\\tidy.exe -v` This works on my XP box. | What's the difference to the code above which I tested already and which | doesn't work? | Are you sure about the "\\" mixed with "\"? Yes. \f and \t is interpreted as special sequence. So, we need to escape them. But, \u is interpreted "as is". | Here is your code and a line with an added "\": | | puts `command.com /c \\for-programs\use\\tidy\\tidy.exe -v` | puts `command.com /c \\for-programs\\use\\tidy\\tidy.exe -v` | | Neither produces any output. That's the problem :( Now I can test on Win98 box at all. To a strange thing (but as your report), Solution B' did not work. But, on my Win98 box, Solution A worked. BTW, if you want to know what is happens, try `command.com /c echo SOME TEST COMMAND LINE` Regards, -- U.Nakamura