General information
Title:
PROCESS.VCX (API_APPRUN)
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only