It's not Phobos' fault, I tried it in Python's os.system on Windows and I got the same result. It's just a quirk I guess.
On Thu, Jun 30, 2011 at 3:08 AM, Nick Sabalausky <[email protected]> wrote: > "s4mmael" <[email protected]> wrote in message > news:[email protected]... > > Hi all! > > > > I'm trying to run the following command with the 'system' function: > > std.process.system("\"c:\\Program Files\\some program.exe\""); > > Because it's double quoted it's OK. > > > > Now I want to redirect an output of "some program.exe" to a file: > > std.process.system("\"c:\\Program Files\\some program.exe\" > > > c:\\filename"); > > And it works well too. > > > > Then I'm trying to quote a 'filename' in case in includes a white space: > > std.process.system("\"c:\\Program Files\\some program.exe\" > \"c:\\file > > name\""); > > but I got the following message on a standard output: > > 'c:\Program' is not recognized as an internal or external command, > > operable > > program or batch file. > > > > What is the right method to quote both paths in case of redirection to a > > file? > > Thank you beforehand for the answer. Any advice would be greatly > > appreciate. > > > > Thanks beforehand for the answer. > > Sounds like std.process.system is doing some parsing of your command and > getting it wrong. :( > > >
