Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
!RUN Command Failed?
Message
From
25/05/2001 00:55:32
Al Doman (Online)
M3 Enterprises Inc.
North Vancouver, British Columbia, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00511019
Message ID:
00511344
Views:
18
>I'm running a VFP6 application (compiled, not in dev mode) on a Win2K Pro machine. Everytime I run this code:
>
>!PKZ -3 -- -+ -) -O MOD.ZIP _MDCPT.DBF >NUL
>
>I get "!RUN Command Failed". I can run the exact same system (over the network) on another Win2k Pro machine, and I do not get that error. yes, PKZ is resident in the current directory, yes MOD.Zip exists, and Yes, _MDCPT.DBF is in the zip file. I've had this problem before and can usually fix it by creating a BAT file, and running that. This is a major hack, and I refuse to do it anymore. Anyone have any idea as to what's causing this problem?
>
>Oh yea, I do NOT get this error when I'm in running the code, only when it's compiled.

Some ideas:

- If PKZ is a DOS program, check the CONFIG.NT and AUTOEXEC.NT on the machine that works vs. the one that doesn't.

- Try Ed Rauh's API_APPRUN class available here in the download section. Gives you more control over running external apps.

- Although I haven't used it, there is a commercial DynaZip product available to let you integrate .ZIP handling directly into your apps. Other users seem to have had good success with it; Mark McCasland has written a wrapper class for it.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform