Page 1 of 1

convert path - error when path contains host name

Posted: Thu Feb 01, 2007 2:12 pm
by jweksej
The short path is like that:
\\\\host\\folder1\\folder2\\.....
After conversion to long it looks:
\\folder1\\folder2\\.....

any workaround exists exept tedious parsing to extract host name from short path?

The reason of path convesion was cmd on XP - it does not support short paths...

regads
Jarek

Posted: Thu Feb 01, 2007 3:59 pm
by jimo
I do not believe that Convert path is intended to convert a UNC path, rather it is meant to either convert c:\\Program Files to c:\\Progra~1
or convert c:\\Progra~1 to c:\\program files.

Posted: Fri Feb 02, 2007 3:30 am
by jweksej
But you never now how user will start the installer. He can start it from not mapped location and then the current path will start from \\\\hostname....
And it makes problem...

Posted: Fri Feb 02, 2007 8:08 am
by jimo
Then don't let them start from a UNC path or change whatever you are trying to run using cmd on XP to using "Run Program" or "Run Program As". You are the developer you can control how the user runs the installer.