View Full Version : batch scripting II: the return
sdkramer
03-19-2003, 08:05 AM
Okay does anyone know how to remove all partitions from a drive and create one partition of the maximum size from the command line. I'm trying to do this in a batch file for the purpose of fdisking and formatting a whole buncha machines.
TIA,
Seth
EzyStvy
03-20-2003, 06:32 AM
I don't think you can. If it were possible, the command line would probably have to be unique for each drive with different partitions. This link has all sorts of info on fidisking:
How to Use Fdisk and Format to Partition or Repartition a Hard Disk
Click Here (http://support.microsoft.com/support/kb/articles/Q255/8/67.ASP?LNG=ENG&SA=ALLKB&FR=0)
sdkramer
03-20-2003, 12:35 PM
I actually found a way in order to waste the existing partitions you can overwrite the mbr with 0s using debug, and to choose the max size one I'm just using type to type the contents of a file out. It's actually quite cute. When I get back to the office I'll post it in case anyone could use something like this.
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.