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.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only