You need to set your path and default directories. In order to determine the path of the calling program you can use the routine L1Call() below. Then your data path is L1Call()+'DATA\' -- so you can set PATH to that:
l_cNewPath = L1Call()+'DATA\'
Set Path To &l_cNewPath
-Adam
* Make this a separate file L1Call.Prg
* L1Call Returns the calling program's directory
Local l_c
l_c = Sys(16,0)
RETURN Left(l_c,Rat('\',l_c))
****** End L1Call
>Can someone advise?
>
>I have an application which I now wish to create distribution disks for. I run the wizard having first created a disk set directory and placed the data and .exe in the appropriate places. Everything executes fine. I then perform an installation, but the data source used by the application remains the original one. That is, instead of looking to the installation directory data source, \myprogram\data, the application is using the original development data directory!
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