Hello<br>I have a whole directory tree of RAR files that I wish to extract as a batch job. In my real script I&#39;ve used os.walk() and os.spawn*() but for demonstration purposes have a look at the code below<br><br>&gt;&gt;&gt; import os
<br>&gt;&gt;&gt; process=r&quot;C:\Program Files\WinRAR\Rar.exe&quot;<br>&gt;&gt;&gt; startDir = r&quot;C:\to burn&quot;<br><br>&gt;&gt;&gt; os.system(process+&quot; x &quot;+&quot;C:\\to burn\\somemovie\\mymovie.rar&quot;+&quot; &quot;+startDir)
<br><br>This doesnt work for me.. I get the error &quot;&nbsp; &#39;C:\Program&#39; is not recognized as an internal or external command, operable program or batch file.&quot;<br>Notice that it says &quot;C:\Program&quot;.... thats the incorrect path, the path is supposed to be &quot;C:\Program Files\...&quot;
<br><br>I realised the problem definitely because of the space between &quot;Program&quot; and &quot;Files&quot;.. <br>Actually, I even know the solution to an extend. In Windows command prompt, whenever you have whitespaces in your path, you are expected to enclose the whole path in double quotes; for example:
<br><br>C:\&gt;rar.exe x &quot;C:\to burn\blah blah\&quot;<br><br>I think this is the reason, but I am unsure. Your support is greatly appreciated.<br><br>Thanks!<br>