>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?
>
It's likely a problem with the FOXRUN.PIF file not existing, a problem with the default memory configuration settings in Win2K, or a pathing problem resulting from the redirection to the NUL: device, which may want a trailing : on some Windows versions, or may not be defined as a DOS device. I'd suggest starting with the PIF file, or better yet, using my API_APPRUN class rather than RUN (downloadable from the Files section) - it does not rely on FOXRUN.PIF, and can run minimized or completely hidden, so that redirection to NUL: is not needed to hide the console output. You could also use the ShellExecute() API call (there is an implementation in the FFC, and a sample of its use in the Windows API section here on UT.)
>Oh yea, I do NOT get this error when I'm in running the code, only when it's compiled.
>
This strongly suggests the PIF file is not present on the problem machine. It must be in the Windows search path, and the command processor it specifies must be resolvable.