Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I format a disk
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00177270
Message ID:
00177305
Views:
30
>I need to format a disk in the drive a:\. I do not want to use the DOS format from VFP with the run command.
>
>Is there a API that I can use to do this. I do not want to prompt any messages to the user.

There's no direct API call that I know of to format a floppy, but you could use a call to CreateProcess() to run the FORMAT minimized, and redirect STDIN to a file to answer the prompts. Unfortunately, you're in trouble if the format fails...
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