Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 12-08-2003, 03:01 PM   #1 (permalink)
dethangel's Avatar
 
Ultra Techie

Join Date: Apr 2003

Posts: 934

dethangel

Default format batch file

any1 know how to write a batch file to automatically format an NTFS partition automatically (like a string to add to autoexec.bat?) i need it because i have to format about 80 pcs, and i dont feel like booting into the OS of every single one and running fdisk or something like that, just something automatic would be great, ty for any info

*edit*

btw this is for a large group of win 2k dell boxes, ty

*edit*
dethangel is offline  
Old 12-08-2003, 04:59 PM   #2 (permalink)
dethangel's Avatar
 
Ultra Techie

Join Date: Apr 2003

Posts: 934

dethangel

Default

ha! looks like i stumped you guys lol, just kiddin, but if any1 has any info on this kind of thing it would be greatly appreciated, and preferrably it would all fit on a floppy
dethangel is offline  
Old 12-10-2003, 11:24 AM   #3 (permalink)
dethangel's Avatar
 
Ultra Techie

Join Date: Apr 2003

Posts: 934

dethangel

Default

well, if no one knows this do you at least know how to make an enter in a batch file? i figured ill just use fdisk, but i have to use the enter command, but im not sure what to put in my batch file, any help is greatly appreciated
dethangel is offline  
Old 12-10-2003, 05:42 PM   #4 (permalink)
 
Wizard Techie

Join Date: Jul 2003

Posts: 3,940

ekÆsine

Default

its not that nobody wants to help you or doesn't know BAT, its because i don't think you can format NTFS this way unless you have a special version of DOS that can access NTFS
ekÆsine is offline  
Old 12-10-2003, 06:03 PM   #5 (permalink)
dethangel's Avatar
 
Ultra Techie

Join Date: Apr 2003

Posts: 934

dethangel

Default

i know, im just joking with peeps when i say stuff like that, BUT you can format any partition with FDISK, i did it today, it just calls it a "non-dos partition" that could be any kind of partition. the thing is, i just need to know what the syntax of a batch file is, what command do i use for enter? because in FDISK you have to press enter, and if you just write the batch file to put in the #s and letters you need, it will go into FDISK and once you exit the program (by manually pressing esc) it will give you a single "bad command or file name" for every line that was supposed to be run in FDISK, so basically what i need is to know how to tell my batch file to use the "enter" command, see what im saying?
dethangel is offline  
Old 12-11-2003, 01:39 AM   #6 (permalink)
 
Wizard Techie

Join Date: Jul 2003

Posts: 3,940

ekÆsine

Default

no i don't, i have experience in batch file making and what you are asking makes little to no sense to me. FDISK is a partitioning utility.

when you select non-DOS partition you are deleting a partition with a filing system other than FAT. you cannot format with FDISK.
ekÆsine is offline  
Old 12-11-2003, 10:54 AM   #7 (permalink)
dethangel's Avatar
 
Ultra Techie

Join Date: Apr 2003

Posts: 934

dethangel

Default

ok, im not formatting, all i have to do is get the partition off of the HDD, i just need the information on the HDD to go away, i dont care what the HDD looks like after its done, i just need it gone
dethangel is offline  
Old 12-13-2003, 07:22 PM   #8 (permalink)
 
Wizard Techie

Join Date: Jul 2003

Posts: 3,940

ekÆsine

Default

here's some resource to make batch files:

http://www.ericphelps.com/

http://www.computerhope.com/
ekÆsine is offline  
Old 12-15-2003, 10:48 AM   #9 (permalink)
dethangel's Avatar
 
Ultra Techie

Join Date: Apr 2003

Posts: 934

dethangel

Default

thanks for the help, but i just went ahead and created 4 disks, (2) with fdisk in the autoexec.bat (opens fdisk automatically on boot) and (2) with format in the autoexec.bat, which opens format upon boot, so at least i dont have to type fdisk and format, lol, saves a little time, but not a huge amount
dethangel is offline  
Old 02-18-2004, 10:31 AM   #10 (permalink)
 
Newb Techie

Join Date: Feb 2004

Posts: 8

Jon2

Lightbulb

You could write a batch file that uses fdisk to convert the drive to FAT or create a primary dos partition then format?
Jon2 is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On