Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RUN command failing in CMD window
Message
From
25/01/2002 22:05:31
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00607226
Message ID:
00610955
Views:
23
>Bill,
>
>I'm not sure if Ed's extensive answer has you all fixed up yet or not. The problem here turned out to be a hidden command.com in the root directory. You might try renaming or removing this file if you don't need dual boot on the box. Then the OS should find the right file to use in the Windows folder.
>

In addition, assuming that you're using the VFP RUN command, there's always the option to modify FOXRUN.PIF to start an instance of CMD.EXE rather than COMMAND.COM by default - the sole drawback here is that this would not work in Win9x settings, where there is no CMD.EXE

A better approach would be to use my API_APPRUN class instead of run - it invokes child processes via the CreateProcess() API call, which goes through some machinations to ensure that a valid CLI is started. The file is available for download in the Files section here on UT. It handles sorting out what to invoke much better than FOXRUN.PIF does in dual-boot scenarios.

>>That would be great. Since I sent the original message, I have found out a little more about the offending site. All other sites where this app is installed operate on PC's where DOS 6.22 was installed first, then Windows NT installed afterwards. This site, however, failed to install the DOS 6.22 first. The DOS app that is called by the batch file may be failing in that instance. The only reason I didn't follow this logic was that the DOS app worked fine in a CMD.EXE window whether called by the batch or not.
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