Re: How to do a function like quick-format?         


Author: boris
Date: May 12, 2008 06:36

"bluestar" gmail.com> wrote in message
news:47a61184-0892-455c-95c8-eb25272940da@u12g2000prd.googlegroups.com...
> 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 /V:Data /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?
>

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/library/aa390432(VS.85).aspx

Boris
diggit! del.icio.us! reddit!

RELATED THREADS
SubjectArticles qty Group
Hypergeometric functions and beta functionssci.math ·