Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
!RUN Command Failed?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00511019
Message ID:
00511853
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?
>

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.
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
Reply
Map
View

Click here to load this message in the networking platform