Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run a VFP Program from FPDOS or an FPDOS pgm from VFP
Message
From
15/11/2000 20:49:35
 
 
To
15/11/2000 13:32:19
Steven Herbin
SNH Computing Corporation
Swan Lake, New York, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00442229
Message ID:
00442433
Views:
8
>To all --
>
>Well ... the subject sort of explains itself.
>
>I'm in the process of rewriting a good sized FPDOS system into VFP. I'm taking a phased approach and the first phase is being able to run the reports to a lan laser printer. What I want to do is take my converted reports (in VFP) combine them with wrapper code and run them in a VFP .exe. This .exe would be called (via RUN ?) from the FPDOS program. Is this do-able and how? I tried just a Run with the program name (fully qualified) on my development machine. All I get is a command not found error message.
>
>When I try running the FPDOS program from VFP the screen blinks (when the DOS session starts) then it just goes away.
>

Firing a WinApp from a DOS session requires running a batch file, and using the START verb to launch your WinApp. Essentially, the batch file would read:

START /dC:\MyVFPAppDir /i /wait VfpApp.EXE
EXIT

/d specifies a starting directory; /i tells the new app to inherit the environment space, and /wait pauses batch file execution until the WinApp terminates. You can force the app to run minimized or maximized; see the Windows Help file. I'm not certain that /i is supported under Win9x.

>Is what I want to do possible?
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform