Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to run dos command in ME or Win2000?
Message
From
25/05/2002 13:29:58
 
 
To
25/05/2002 02:20:41
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00661330
Message ID:
00661390
Views:
28
>Pls. somebody help!
>
>Can anybody tell me how to run the dos command in ME or Win2000?

If it's an internal DOS command like COPY, you need to explicitly start a new command processor as a part of the command line:
RUN COMMAND /C COPY MyFile.TXT YourFile.TXT
External DOS executables should be startable with the RUN command without the /N switch in use; you may need to create a .PIF file for the DOS executable if it has unusual memory or screen behaviors (right click in the DOS executable under Windows Explorer, select Properties, and adjust the PIF settings as needed.) Alternatives to the run command exist; the WSH Wscript.Shell object and Shell.Application object provide mechanisms to run executables or documents associated with executables; the ShellExecute() API (and the _ShellExecute class in _environ.vcx in the FFC) will run DOS executables, and my API_APPRUN class (available in the Files section for download) will all launch DOS executables.

Not all DOS executables will run under either ME or Win2K, so there's always the possibility that you will not be able to do what you want. In particular, DOS executables that use low-level motherboard resources are likely to have problems in both cases.

>
>Many Thanks
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