Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Path name
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Miscellaneous
Thread ID:
00371272
Message ID:
00371625
Views:
22
>Hi all,
>
>Is there a way in which i can use short path names instead of long path names throught justpath().
>

In the FAQ there's sample code that will use the Win32 API to convert a long name to a short name under Win32 and Other APIs. Alternbatively, you can use the Scripting.FileSystemObject's File or Folder subobject - both have a short name available as a member property.

>That is, assume i have a folder called "FLD Caption" , this in DOS mode, would be "FLDCAP~1"
>When i go thro justpath() , it shows "FLD CAPTION" and hence it is impossible to try and copy any files from this folder at runtime. This is cause it encounters a space between FLD and CAPTION, it considers it as invalid command.
>
>How do i get around this.
>
>Dinesh
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform