convert path - error when path contains host name

Got a problem you cannot solve? Try here.
Post Reply
jweksej
Posts: 93
Joined: Wed Sep 27, 2006 4:54 am

convert path - error when path contains host name

Post 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
jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Post 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.
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com
jweksej
Posts: 93
Joined: Wed Sep 27, 2006 4:54 am

Post 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...
jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Post 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.
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com
Post Reply