Hi Bill,
In addition to what Evan said have you considered using UNC's?
cd '\\borg\folders'
This way the program won't care which drive a workstation has mapped to a particular server.
I also use fullpath('') to get the entire path to current location.
And one other thing I do in case you run into it. I set up a system variable in my autoexec.bat I put a line in this file that says: glDeveloper = .T.
Note: VFP will see the ".T." as a character.
glDeveloper = IIF(GETENV('glDeveloper') = ".T.",.T.,.F.)
Then in my code I check if gldeveloper is true and the location the app was launched from to see if it should run in developer mode thus junk data.
>I've developed an application on a network, I do my development work
on "p:\development\" and data stor in a subdir of that called
data, problem I'm having is when I compile
and install the app for a user with the same structure yet different
drive say "g:\" with a data subdir the app runs yet prompts
the users for location of the database.
Précédent
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