Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FORMAT batch script

Status
Not open for further replies.

n3tw0rkadm1n1strat0r

IS-IT--Management
Joined
Aug 29, 2006
Messages
119
Location
US
What is the right command in a batch script to do a quick format on a drive without it asking you for confirmation if you want to format it?

format E: /FS:NTFS /q

??
 
echo y | format E: /FS:NTFS /q

should work for you.

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top