>>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).