General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only