that was the problem. when i manually reassociated the extension, i somehow
didnt quote the argument for the filename. my bad.
thanks for the various explanations and options for this :)
cheers.
2007/8/20, Gabriel Genellina <[EMAIL PROTECTED]>:
>
> En Sat, 18 Aug 2007 09:24:35 -0300, SHY <[EMAIL
En Sat, 18 Aug 2007 09:24:35 -0300, SHY <[EMAIL PROTECTED]> escribi�:
> theres no special portion of code, just the one that handles filenames
> with
> spaces.
> the problem is that when i associate a file extension to my application
> and
> i open it, the filename is not quoted before passed
Sorry for ignoring the thread.
> the problem is that when i associate a file extension to my application and
> i open it, the filename is not quoted before passed as an arguement. i dont
If it is not quoted by default, you can quote it explicit. If this be the case
where the filename is obtained
theres no special portion of code, just the one that handles filenames with
spaces.
the problem is that when i associate a file extension to my application and
i open it, the filename is not quoted before passed as an arguement. i dont
know if its the problem of windows or something, or it was just
O.R.Senthil Kumaran wrote:
>> Quote:D:\ftp\Music\Mixes & Compilations\Above & Beyond - Essential
>> Mix\001_Essential_Mix_2004-06-06_-_Above_and_Beyond.txt
>
>> when i put 'print sys.argv[1:]' at the very beginning of the script, all i
>> get is this:
>>
>> Quote:['D:\\ftp\\Music\\Mixes']
>>
> Can
> Quote:D:\ftp\Music\Mixes & Compilations\Above & Beyond - Essential
> Mix\001_Essential_Mix_2004-06-06_-_Above_and_Beyond.txt
> when i put 'print sys.argv[1:]' at the very beginning of the script, all i
> get is this:
>
> Quote:['D:\\ftp\\Music\\Mixes']
>
Can you share the portion of the code?
hey,
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.