|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (9 bit)
|
batch scripting II: the return
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 |
|
|
|
|
|
#2 |
|
Ride 'em Cowboy
Join Date: Dec 1999
Location: Dallas, Tx
Posts: 9,109
|
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 |
|
|
|
|
|
#3 |
|
Member (9 bit)
|
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.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|