It's not Phobos' fault, I tried it in Python's os.system on Windows and I got the same result.<div>It's just a quirk I guess.<br><br><div class="gmail_quote">On Thu, Jun 30, 2011 at 3:08 AM, Nick Sabalausky <span dir="ltr"><a@a.a></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">"s4mmael" <<a href="mailto:fake@mail.com" target="_blank">fake@mail.com</a>> wrote in message<br>
news:iuf0gk$1g5r$1@digitalmars.com...<br>
<div><div></div><div>> Hi all!<br>
><br>
> I'm trying to run the following command with the 'system' function:<br>
> std.process.system("\"c:\\Program Files\\some program.exe\"");<br>
> Because it's double quoted it's OK.<br>
><br>
> Now I want to redirect an output of "some program.exe" to a file:<br>
> std.process.system("\"c:\\Program Files\\some program.exe\" ><br>
> c:\\filename");<br>
> And it works well too.<br>
><br>
> Then I'm trying to quote a 'filename' in case in includes a white space:<br>
> std.process.system("\"c:\\Program Files\\some program.exe\" > \"c:\\file<br>
> name\"");<br>
> but I got the following message on a standard output:<br>
> 'c:\Program' is not recognized as an internal or external command,<br>
> operable<br>
> program or batch file.<br>
><br>
> What is the right method to quote both paths in case of redirection to a<br>
> file?<br>
> Thank you beforehand for the answer. Any advice would be greatly<br>
> appreciate.<br>
><br>
> Thanks beforehand for the answer.<br>
<br>
</div></div>Sounds like std.process.system is doing some parsing of your command and<br>
getting it wrong.  :(<br>
<br>
<br>
</blockquote></div><br></div>