Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining UNC path at setup
Message
From
19/01/2000 09:47:05
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00319694
Message ID:
00319857
Views:
16
>I posted this question earlier today. Based on the two responses I received, I obviously did not accurately convey my question.
>
>I'm running a VFP setup to a workstation from an NT server using a UNC path (i.e. \\servername\sharename\setup.exe). This setup launches a VFP post setup executable (as defined in the setup wizard) which accesses dbf files on the server from which it is launched.
>
>The post setup executable currently requires a F:\ drive mapping to a server share to access dbf files (F:\dbfname). Is there any way to determine the server name from which the setup routine is running so that I may access the dbfs using the \\servername\sharename\dbfname format?
>
>I'm looking to eliminate the need for the F:\ drive mapping entirely. The two responses I received earlier directed me to functions that will determine a UNC path based on a drive mapping. I want to run the setup using a UNC path and determine where the setup exe is running from my VFP post setup executable. This would allow me to access the dbfs using UNC format and eliminate the need for any drive mapping.


Rick,
Mark's way is the one I also prefer. Also could "fullpath(program(0))" help ? If not mapped it would return UNC otherwise driveletter.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform