Hello Valeriy,
Yes, my app will make partitioning of a drive and formatting new
partitions, so I need a silent procedure
–
Roman Kudinov
mailto:xxxxx@rbcmail.ru
Tuesday, July 6, 2004, 2:04:20 PM, you wrote:
VG> If it will be used in user mode - I guess it’s possible to call Disk Manager
VG> COM Object and allow the user to format the partition “by hands” 
VG> But if I got it correct, Roman need a “silent” formatting method to embed it
VG> into his own application, am I right?
VG> Best regards,
VG> Valeriy Glushkov
> Roman,
>
> on your place I would not spawn separate process to format the drive.
> Really ugly! Mess with getting
> progress and feedback, uh! I’d use SHFormatDrive(…) undocumented call.
> Check this link:
>
> http://www.codeproject.com/dialog/cformatdrivedialog.asp
>
> to find good working and good looking example of how can be done what
> you want 
>
> Regards,
> Anton A. Kolomyeytsev
>
> RocketDivision.Com – Toolkits for Network and Storage Kernel Software
> Developers
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Roman Kudinov
> Sent: Tuesday, July 06, 2004 12:26 PM
> To: Windows File Systems Devs Interest List
> Subject: Re[2]: [ntfsd] how to format a drive?
>
>
> Hello Al,
>
> great thanks for the link.
>
> Are there anything similar on Win9x or format.com is the only way for
> this OS?
>
> –
> Roman Kudinov
>
>
> mailto:xxxxx@rbcmail.ru
>
>
> Monday, July 5, 2004, 2:38:26 PM, you wrote:
>
> AS> Hello Roman,
>
> AS> Sunday, July 04, 2004, 4:34:46 PM, you wrote:
>
> Roman Kudinov>> Hello Maxim,
>
> Roman Kudinov>> thanks, I didn’t think that it will be so easy 
>
> AS> Additionally you can use method explained here:
> AS> http://www.sysinternals.com/ntw2k/source/fmifs.shtml
> AS> This is help to get even progress callback to display progress in
> AS> your application.
>
> MSS>> Executing “format g:” by a CreateProcess call is one of the
> MSS>> best ways. Otherwise, you will need to write all filesystem
> MSS>> structures to the partition yourself.
>
> MSS>> Maxim Shatskih, Windows DDK MVP
> MSS>> StorageCraft Corporation
> MSS>> xxxxx@storagecraft.com
> MSS>> http://www.storagecraft.com
>
>
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@cooldev.com
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
> —
> Questions? First check the IFS FAQ at
VG> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: gvvua@ua.fm
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
VG> —
VG> Questions? First check the IFS FAQ at
VG> https://www.osronline.com/article.cfm?id=17
VG> You are currently subscribed to ntfsd as: xxxxx@rbcmail.ru
VG> To unsubscribe send a blank email to
VG> xxxxx@lists.osr.com
If this is on Windows Server 2003 you can use WMI services to format the
volume. Below is a simple script that lets you do that.
strComputer = “.”
Set objWMIService = GetObject(“winmgmts:\” & strComputer & “\root\cimv2”)
Set colVolumes = objWMIService.ExecQuery(“Select * from Win32_Volume Where
Name = ‘D:\’”)
For Each objVolume in colVolumes
errResult = objVolume.Format(“NTFS”)
Next
Thanks
Ravinder
This posting is provided “AS IS” with no warranties, and confers no rights.
“Roman Kudinov” wrote in message news:xxxxx@ntfsd…
> Hello Valeriy,
>
> Yes, my app will make partitioning of a drive and formatting new
> partitions, so I need a silent procedure
>
> –
> Roman Kudinov
>
>
> mailto:xxxxx@rbcmail.ru
>
>
> Tuesday, July 6, 2004, 2:04:20 PM, you wrote:
>
> VG> If it will be used in user mode - I guess it’s possible to call Disk
Manager
> VG> COM Object and allow the user to format the partition “by hands” 
>
> VG> But if I got it correct, Roman need a “silent” formatting method to
embed it
> VG> into his own application, am I right?
>
> VG> Best regards,
> VG> Valeriy Glushkov
>
> >> Roman,
> >>
> >> on your place I would not spawn separate process to format the drive.
> >> Really ugly! Mess with getting
> >> progress and feedback, uh! I’d use SHFormatDrive(…) undocumented
call.
> >> Check this link:
> >>
> >> http://www.codeproject.com/dialog/cformatdrivedialog.asp
> >>
> >> to find good working and good looking example of how can be done what
> >> you want 
> >>
> >> Regards,
> >> Anton A. Kolomyeytsev
> >>
> >> RocketDivision.Com – Toolkits for Network and Storage Kernel Software
> >> Developers
> >>
> >>
> >> -----Original Message-----
> >> From: xxxxx@lists.osr.com
> >> [mailto:xxxxx@lists.osr.com] On Behalf Of Roman Kudinov
> >> Sent: Tuesday, July 06, 2004 12:26 PM
> >> To: Windows File Systems Devs Interest List
> >> Subject: Re[2]: [ntfsd] how to format a drive?
> >>
> >>
> >> Hello Al,
> >>
> >> great thanks for the link.
> >>
> >> Are there anything similar on Win9x or format.com is the only way for
> >> this OS?
> >>
> >> –
> >> Roman Kudinov
> >>
> >>
> >> mailto:xxxxx@rbcmail.ru
> >>
> >>
> >> Monday, July 5, 2004, 2:38:26 PM, you wrote:
> >>
> >> AS> Hello Roman,
> >>
> >> AS> Sunday, July 04, 2004, 4:34:46 PM, you wrote:
> >>
> >> Roman Kudinov>> Hello Maxim,
> >>
> >> Roman Kudinov>> thanks, I didn’t think that it will be so easy 
> >>
> >> AS> Additionally you can use method explained here:
> >> AS> http://www.sysinternals.com/ntw2k/source/fmifs.shtml
> >> AS> This is help to get even progress callback to display progress in
> >> AS> your application.
> >>
> >> MSS>> Executing “format g:” by a CreateProcess call is one of the
> >> MSS>> best ways. Otherwise, you will need to write all filesystem
> >> MSS>> structures to the partition yourself.
> >>
> >> MSS>> Maxim Shatskih, Windows DDK MVP
> >> MSS>> StorageCraft Corporation
> >> MSS>> xxxxx@storagecraft.com
> >> MSS>> http://www.storagecraft.com
> >>
> >>
> >>
> >>
> >> —
> >> Questions? First check the IFS FAQ at
> >> https://www.osronline.com/article.cfm?id=17
> >>
> >> You are currently subscribed to ntfsd as: xxxxx@cooldev.com
> >> To unsubscribe send a blank email to
> >> xxxxx@lists.osr.com
> >>
> >>
> >> —
> >> Questions? First check the IFS FAQ at
> VG> https://www.osronline.com/article.cfm?id=17
> >>
> >> You are currently subscribed to ntfsd as: gvvua@ua.fm
> >> To unsubscribe send a blank email to
> >> xxxxx@lists.osr.com
>
>
> VG> —
> VG> Questions? First check the IFS FAQ at
> VG> https://www.osronline.com/article.cfm?id=17
>
> VG> You are currently subscribed to ntfsd as: xxxxx@rbcmail.ru
> VG> To unsubscribe send a blank email to
> VG> xxxxx@lists.osr.com
>
>