Please Help! Format disk programmaticaly

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to format disk in my appl in vc++
I am using SHFormatDrive(...) function
but this shell function opens a dialog window to confirm user to format disk
I want to format disk without dialog win

thank yo
 
Hy,

call the format.com (In the System32 directory and overgive the parameters
you need).

This should work.

Joerg
 
Hy Pola

you must call format.com with following parameters:
format.com A: /Y

so now it works without confirm.

Joerg

Pola said:
thank you,
but format.com also request to
confirm the format from the user
 
Which Windows Version did you use?
It works under XP and 2000.

Try it in the command line.
 
Hi Joerg,

I need a function that runs a program directly when you receive an email,
are you supported that also.

I think it is not good to help with this kind of questions. Peter X did
pointed us on that.

Just my opinion.

Cor
 
Hy Cor,

thx. I support the email problem. Please contact me @ my address that I can
help you.

Joerg
(e-mail address removed)
 
Ok then please make the following steps:

1. Create a File (eg. C:\test.txt)
2. Edit the file content to Y
3. Save it
4. Call: format.com A: < C:\test.txt

this should definitivly work.

Joerg
 
Back
Top