Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Format Disk using FoxPro Command?
Message
From
04/07/1999 18:17:39
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00237325
Message ID:
00237372
Views:
12
>>Can i format disk using FoxPro Command?
>
>You can run the command line format command using VFP's RUN command, or using any of a number of API calls such as ShellExecute() or CreateProcess() - my API_APPRUN class uses the CreateProcess() API call.
>
>The simple example, using VFP to format a disk in the A: drive:
>
>RUN FORMAT A: /Q/U

I'd rather go the API way here, because I've had bad experience with running the DOS Format under Windows (even version 7.1, which ships with W95 OSR2, and also with W98), because in some environments it simply freezes the task that calls it - be it Fox or a separate Dos window. Happened on three different machines in six months (and would still be happening, but we rather taught the users how to click their way through).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform