Information générale
Catégorie:
Fonctions Windows API
Titre:
Determining UNC path at setup
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.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement