Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Formatting a floppy disk??
Message
From
30/07/1999 15:22:10
 
 
To
30/07/1999 14:07:38
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00248284
Message ID:
00248338
Views:
12
>Is there a native foxpro function to accomplish this??

Yoiu can invoke the operating system FORMAT function with the RUN command; there is no native function or trivial API call that will do this for you rather than the OS format command. You can redirect the STDIN using pipes (or use an API call like CreateProcess() that allows you to redirect STDIN from the API call) to avoid having the user make responses to the FORMAT command.

You can use my API_APPRUN class (download from the Files Section) to run the FORMAT command and force VFP not to show a DOS window and to wait on the command to complete without permitting VFP to continue.
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