Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running external program
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01051001
Message ID:
01051035
Views:
16
>This process may run as a batch process. Right now I'm testing it from GUI, but we may want to try it to run in batch mode. However, I don't want to make this program slower than it has to be. Can you find out from prg the name of exe that called it? If it's batch, let it fail, otherwise we may use your suggestion and ask user for file location.

One of following should provide you with an answer: PROGRAM(), SYS(16), _VFP.ServerName, ASTACK().

Another solution would be to store the location of the program in question in the registry or INI file at the time of installation.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform