I can run my app from any location as long as all the supporting files are there. Your default folder will be the folder you started the EXE in unless you have a DEFAULT = line in your startup config.fpw At startup I set a public variable ps_home = FULLPATH('')
Any paths referenced in my app will use this var.
HTH
Peter Cushing IT Department WHISPERING SMITH
On 14/08/2019 04:57, Gene Wirchenko wrote:
Hello:
I have an app that has for years been executed out of thedefault directory with the data there, too.
Now, I have to give at least the data an arbitrarylocation. Can I use SET DEFAULT for this and save having to rewrite hundreds of table referring statements? Or are there nasty things to worry about?
I am thinking of having a config table in the startup defaultdirectory that specifies the data directory and then SET DEFAULT to that directory. When executing a .exe version of the app, I think this will not cause trouble, but for a debug version with separate .fxp, I think I also need to SET PATH for the code to be found. I join all my code together with SET PROCEDURE TO ... ADDITIVE in the startup .fxp if that makes a difference. Are the gotchas going to get me?
Sincerely,
Gene Wirchenko
[excessive quoting removed by server]