How do I format a drive in windows?

Savij

Diamond Member
Nov 12, 2001
4,233
0
71
I need to format a set of drives, preferably using a batch file, but I can't figure out how to do it without having to manually tell it that i'm sure that's what i want to do. Is there some tool or shell scripting method that I can use to force it to do it without the confirmation?

I really don't want to hit Y 750 times.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
I believe you can do 'echo y | format X:'.

But unless you found some way to put all 750 drives in the machine and get them letters you're going to have to do a lot more work than just hitting the y key to format them all.
 

Smilin

Diamond Member
Mar 4, 2002
7,357
0
0
Originally posted by: Nothinman
I believe you can do 'echo y | format X:'.

But unless you found some way to put all 750 drives in the machine and get them letters you're going to have to do a lot more work than just hitting the y key to format them all.

You owe Nothinman some points :p

yes, you can pipe a "yes" reply to any command that requires a confirmation.

In addition to formatting I'm guessing you'll need to make partitions. Diskpart in Winpe or XP does the trick.


ps, that echo trick is "space sensitive" don't put any spaces before or after the |
 

Savij

Diamond Member
Nov 12, 2001
4,233
0
71
Originally posted by: Smilin
Originally posted by: Nothinman
I believe you can do 'echo y | format X:'.

But unless you found some way to put all 750 drives in the machine and get them letters you're going to have to do a lot more work than just hitting the y key to format them all.

You owe Nothinman some points :p

yes, you can pipe a "yes" reply to any command that requires a confirmation.

In addition to formatting I'm guessing you'll need to make partitions. Diskpart in Winpe or XP does the trick.


ps, that echo trick is "space sensitive" don't put any spaces before or after the |

Thanks guys. I give you 50 extra points for the solution.

That's what I was looking for. I had the diskpart and the machine stuff taken care of, just forgot the shell scripting stuff.