hey,
<br>
<br>
i have a win32 gui application that accepts filenames as arguments
(either via command line or via associating an extension to the
application) which are then opened in it. the problem is that as soon
as the filename contains characters like '&', the process fails at
the very beginning (sys.argv).
<br>
<br>
for example when the full path of the file im trying to open like this is
<br>
<blockquote><h6>Quote:</h6>D:\ftp\Music\Mixes & Compilations\Above & Beyond - Essential Mix\001_Essential_Mix_2004-06-06_-_Above_and_Beyond.txt</blockquote>
<br>
when i put 'print sys.argv[1:]' at the very beginning of the script, all i get is this:
<br>
<br>
<blockquote><h6>Quote:</h6>['D:\\ftp\\Music\\Mixes']</blockquote>
<br>
<br>
i already have a piece of code that puts together paths with spaces sent via arguments, but this '&' drives me crazy.
<br>
<br>other than that, after i close the application (which actually
starts without any errors), the commands line gets filled with a
message like this:
<br>
<br>
<blockquote><h6>Quote:</h6>The system cannot find the path specified.
<br>
'Beyond' is not recognized as an internal or external command,
<br>
operable program or batch file.</blockquote>
<br>
<br>
any idea how to solve this? <img src="http://python-forum.org/py/images/smiles/icon_sad.gif" alt="Sad" border="0">
<br>
thanks in advance!<br>