Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resolving DOS-style paths vs. long paths
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Network:
Novell 5.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01065009
Message ID:
01065016
Views:
14
One of the solutions:

oFSO = CREATEOBJECT("Scripting.FileSystemObject")
o=oFSO.GetFolder("C:\DOCUMENTS AND SETTINGS\AGRANT\MY DOCUMENTS\VISUAL FOXPRO PROJECTS\CONVERTER\DOD\DOD-VFP\")
?lower(o.ShortPath) = "c:\docume~1\agrant\mydocu~1\visual~1\conver~1\dod\dod-vfp\"


>This continues my adventures in screen-conversion-land (previous posting under Third-Party-products "2.6->VFP Form converter")
>
>I am trying to compare two paths. Either or both may be old DOS-style paths, or may be the newer long pathnames, as follows:
>
>"C:\DOCUMENTS AND SETTINGS\AGRANT\MY DOCUMENTS\VISUAL FOXPRO PROJECTS\CONVERTER\DOD\DOD-VFP\"
>should equal
>"c:\docume~1\agrant\mydocu~1\visual~1\conver~1\dod\dod-vfp\"
>
>I cannot perform a string comparison directly for obvious reasons. Is there a way I can resolve the paths to a common form in order to determine if they are the same?
>
>Thanks,
>
>Art
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform