Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting full file paths.
Message
From
23/11/1999 13:25:03
 
 
To
23/11/1999 10:05:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00294333
Message ID:
00294444
Views:
26
>Hello.
>
>I am having a problem trying to get file locations on a network.
>
>The problem is that whenever I try to locate a file on the network (using GETFILE()), the path I receive contains the drive letter mapped on the working computer, which differs from computer to computer. What I need is a way for the file path to include the full network path (\\servername\serverdrive\).
>
>Is there a setting that allows GETFILE() to return such a path? If not, is there another way to obtain it?
>

If you don't want to use either of Bela Bodec's ActiveX controls as a replacement for the native GETDIR, you can also check FAQ#78152 How do I determine the UNC for a mapped drive? under Win32 and Other APIs to get an API call mechanism to convert a mapped drive to a UNC, or 461 Enhanced GETDIR() using Shell Object under Classes - VCX to see code for using the Shell.Application automation object to retrieve the details in UNC formats.
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
Reply
Map
View

Click here to load this message in the networking platform