convert path - error when path contains host name

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

convert path - error when path contains host name

Postby jweksej » Thu Feb 01, 2007 2:12 pm

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:

Postby jimo » Thu Feb 01, 2007 3:59 pm

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

Postby jweksej » Fri Feb 02, 2007 3:30 am

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:

Postby jimo » Fri Feb 02, 2007 8:08 am

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


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 56 guests