Tech Support > Microsoft Windows > Development Resources > How to do a function like quick-format?
How to do a function like quick-format?
Posted by bluestar on May 12th, 2008


Dear Sirs:

I want to do a function, like quick format

The hdd-disk is a removable device, and i
try to use "SHFormatDrive" or DosCommand
:"W:\>format g: /Q /FS:NTFS /Vata /Y".
But they failed to format.

When running SHFormatDrive, it pops format
dialog(I don't want to have it, just want to format
in HIDE condition). And when running
DosCommand:"format:", it would show the
message:"the device is already remove Optimization
, so it doesn't support NTFS FileSystem".

I try to use the tool:"HP USB Disk Storage Format Tool"
to run format. It works successfully.

How to do when i want to do a function,
like quick-format?


Posted by Christian ASTOR on May 12th, 2008


bluestar wrote:

FormatEx(), FormatEx2() (FMIFS.DLL)
or
IFormatEngine interface (Vista)

Posted by boris on May 12th, 2008


"bluestar" <bluestar8783@gmail.com> wrote in message
news:47a61184-0892-455c-95c8-eb25272940da@u12g2000prd.googlegroups.com...
WMI class Win32_Volume has Format method.
It can be called either from script (VB script, Javascript) or C++ (using
COM).

http://msdn.microsoft.com/en-us/libr...32(VS.85).aspx

Boris


Posted by bluestar on May 13th, 2008


On 5$B7n(B12$BF|(B, $B2<8a(B7$B;~(B05$BJ,(B, Christian ASTOR <casto...@club-internet.fr> wrote:
Dear Sir:

Do you have any example for these commands when formatting
driver:"c:" ?
I would like the program to work at Window 2003 later.
Thanks for your kindly help

Posted by bluestar on May 13th, 2008


Dear Sir:

I read the reference web and I still don't how to code.
It is different for me, because i have no idea for WMI
Could you teach me how to code when i want to format
driver:"C:" ?
Thanks for your kindly help.

Posted by bluestar on May 13th, 2008


Dear Sir:

I try to read the reference web, but i still don't know how
to do.
Maybe I don't know about WMI
Do you teach me how to code in MFC when i want to format
driver: "C:" ?
Thanks for your kindly help.

Posted by boris on May 14th, 2008



"bluestar" <bluestar8783@gmail.com> wrote in message
news:02f20ab6-7de5-4e95-906a-d47e742043eb@u12g2000prd.googlegroups.com...

But you wan't be able to format C: if Windows is installed on C:

Boris


Posted by bluestar on May 20th, 2008


Dear Boris:

I typed wrong driver, and I wanted to format driver:"F:"


Similar Posts