format disk [modified]
-
hallo i need to programmatically format a hard disk. Apart from ShFormatDisk, it seems that there's a hope by using FMIFS.DLL or UNTFS.DLL. Has anyone a piece of code to show me? Out there there are just old broken links to sysinternals site regarding FMIFS.DLL. Thanks in advance
modified on Friday, December 12, 2008 3:00 PM
-
hallo i need to programmatically format a hard disk. Apart from ShFormatDisk, it seems that there's a hope by using FMIFS.DLL or UNTFS.DLL. Has anyone a piece of code to show me? Out there there are just old broken links to sysinternals site regarding FMIFS.DLL. Thanks in advance
modified on Friday, December 12, 2008 3:00 PM
Why do you want to format a disk? Are you writing a virus?
Giorgi Dalakishvili #region signature My Articles Asynchronous Registry Notification Using Strongly-typed WMI Classes in .NET [^] My blog #endregion
-
Why do you want to format a disk? Are you writing a virus?
Giorgi Dalakishvili #region signature My Articles Asynchronous Registry Notification Using Strongly-typed WMI Classes in .NET [^] My blog #endregion
-
If he was it would be a shitty virus, no gain in formatting a disk. Maybe he means a removable storage device?
thanks for the interesting replies, it's curious that everywhere i find a thread for "hard disk formatting" there's somebody asking if it is for virusing. Sounds like if a programmer wants to write a scanner software, it is for duplicate identity cards... Evil Is Everywhere :P BTW has anyone serious idea of how to write a function to erase an internal (no removable, no flash memory) hard disk?
-
thanks for the interesting replies, it's curious that everywhere i find a thread for "hard disk formatting" there's somebody asking if it is for virusing. Sounds like if a programmer wants to write a scanner software, it is for duplicate identity cards... Evil Is Everywhere :P BTW has anyone serious idea of how to write a function to erase an internal (no removable, no flash memory) hard disk?
Nah can't help you there, I can't see any possible gain at all for formatting an internal hard drive. Tasks like that should be done by a user without any programmatical assistance through any application not specifically designed for that, it can lead to accidental formats, which should be limited and not encouraged.
-
thanks for the interesting replies, it's curious that everywhere i find a thread for "hard disk formatting" there's somebody asking if it is for virusing. Sounds like if a programmer wants to write a scanner software, it is for duplicate identity cards... Evil Is Everywhere :P BTW has anyone serious idea of how to write a function to erase an internal (no removable, no flash memory) hard disk?
Tried looking through pinvoke.net[^]?
• My personal 24/7 webcam - Always live ;-) • Holiday Season special – zeta producer Desktop 8 (CMS) including all modules for only $129! • Zeta Uploader - Easily send large files by e-mail. Windows and web client available.
-
Tried looking through pinvoke.net[^]?
• My personal 24/7 webcam - Always live ;-) • Holiday Season special – zeta producer Desktop 8 (CMS) including all modules for only $129! • Zeta Uploader - Easily send large files by e-mail. Windows and web client available.
Thanks Uwe. Yes i tried, they mainly suggest ShFormatDisk. I'm trying to give my end users/customers a clean restore environment without dos boxes and nags, using imagex, but i need to format the disk before applying an image.
-
Thanks Uwe. Yes i tried, they mainly suggest ShFormatDisk. I'm trying to give my end users/customers a clean restore environment without dos boxes and nags, using imagex, but i need to format the disk before applying an image.
solved: i launch a command line Process with FORMAT using /Y, an undocumented flag for the unattended mode :)