Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preserving SYS(2004) when running a second executable.
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Preserving SYS(2004) when running a second executable.
Miscellaneous
Thread ID:
00909392
Message ID:
00909392
Views:
49
Hi Everyone!

I have a question that I hope someone may have an answer for:

Currently I have an executable that calls a second executable with the code..

DO SYS(2004)+"MAIN.EXE"

Our users have a shortcut that contains the first executable in the 'Target Location' box (e.g. 'C:\APP\CALL.EXE') and the directory for the data in the 'Start in:' box (e.g. 'X:\MAIN\DATA').

I know there are other ways to do this but my question is this..

I want to use either RUN or SHELLEXECUTE to run the second exe instead of DO but when I do so it seems that the program resets SYS(2004) to be the second executable instead of the first whereas the first way (using DO)it does not.

Is there anyway around this? I tried putting the path of the calling exe in the shellexecute directory parameter but this also does not work.

I know this one is somewhat vague but if anyone has any ideas I would sure appreciate it.

Thanks!
Kevin Scott
kehvn@carolina.rr.com


Hey! It's not my fault. It's some General named Protection!
Next
Reply
Map
View

Click here to load this message in the networking platform