Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PROCESS.VCX (API_APPRUN)
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
PROCESS.VCX (API_APPRUN)
Miscellaneous
Thread ID:
00225698
Message ID:
00225698
Views:
132
Ed,

I recently downloaded your process.vcx class. I have a freeware zip.exe which is a DOS executable that I want to run without the DOS window popping up.

In VFP6.0 SP3 I can run the program with the line
RUN zip.exe -@ atest.zip < atest.txt

The systax is zip
In this case the -@ means to take the source from stdin and, using the DOS piping symbol, the stdin is a text file with a list of the files to be zipped.

I created a small prg to test out the process class.

Since I could not get it to run I finally backed off to the simplest executable statement which is "zip -h" which should just popup the help text.

All text, program, and class files are in the current directory.
The program as I have it at present is:

SET CLASSLIB TO process
oProcess = CREATEOBJ('API_APPRUN','zip.exe -h',,'NOR')
oProcess.LaunchApp()
? oProcess.KillProc()
oProcess = ''

Nothing happens. In some configurations ('zip.exe atest.zip atest.dbf' for example) I get a DOS window that just waits for keyboard entry. In other configurations I get a Fatal Exception Error)

Can you tell from my sample code what I might be doing wrong?

Ed
Next
Reply
Map
View

Click here to load this message in the networking platform