>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