[EMAIL PROTECTED] wrote:
On May 13, 4:38 pm, John Machin <[EMAIL PROTECTED]> wrote:
[EMAIL PROTECTED] wrote:
I have trouble of obtaining the file size of a file because the
fullpath exceeds 255 characters. I get this message with
At the DOS command level, you can do
subst x: very\long\path
and then refer to
x:filestem.ext
where x is any unused drive letter.
Good idea. But subst does not see to work with path that has spaces.
It gives "Incorrect number of parameters"
If any DOS command-line argument includes spaces, you need to quote it.
os.system(r'subst x: "c:\my big fat path\rab oof\etc etc etc"')
--
http://mail.python.org/mailman/listinfo/python-list