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