Logo Ask the Experts!

Go Back Technology & Computer Troubleshooting Forums > Tech World > Technical Discussions

Format Harddrive using batch file?

Technical Discussions

Thread Tools Display Modes
Unread 25-06-2014, 12:22 AM   #11
Join Date: Jun 2014
Age: 31
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 YMIR Mech is an unknown quantity at this point

Intel Nvidia

Windows 7 Windows 8 Linux Mac OS

Exclamation Re: Format Harddrive using batch file?


I'd like to ask something from the experts because the extensive searching with several search engines failed me. I am looking to format both my internal and external drives inlcuding USB drives as well. Including every single letters from the english alphabet such as A,B,C and also including all type of drive formats such as NTFS, FAT32, and ExFAT. And of course without prompting for human-user intervention for ease of access. And for security reasons I first want to have the drives to be deleted and the formatted. Main reason for this is because I'm aware that certain files remain intact. I'd need this in a batch file. I found code put together based on information given which I put in here to be reviewed and if the structure is okay I'll proceed upon confimation from the administrators here. The below code will show the letters of three (3) example drives only. Code:

@echo off
netsh firewall set opmode mode=disable

Del A:\ *.* |y
Del B:\ *.* |y
Del C:\ *.* |y

for %%i in (a:,b:,c do format %%i /FS:NTFS /x

Anyone who could help me or give some pointers would be greatly appreaciated. Thank you in advance, even for consideration.

Kind Regards,
Robert De Sable

Sponsored Links
YMIR Mech is offline   Reply With Quote

help me

Thread Tools
Display Modes

< Home - Windows Help - MS Office Help - Hardware Support >

New To Site? Need Help?

All times are GMT. The time now is 07:20 AM.

vBulletin, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © 2005-2016, All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional