Go Back   PCMech Forums > Windows Support > Windows Legacy Support (XP and earlier)

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 03-19-2003, 07:05 AM   #1
Member (9 bit)
 
Join Date: Jan 2001
Location: Kalamazoo, MI
Posts: 314
Send a message via ICQ to sdkramer Send a message via AIM to sdkramer Send a message via Yahoo to sdkramer
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
sdkramer is offline   Reply With Quote
Old 03-20-2003, 05:32 AM   #2
Ride 'em Cowboy
 
EzyStvy's Avatar
 
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
EzyStvy is offline   Reply With Quote
Old 03-20-2003, 11:35 AM   #3
Member (9 bit)
 
Join Date: Jan 2001
Location: Kalamazoo, MI
Posts: 314
Send a message via ICQ to sdkramer Send a message via AIM to sdkramer Send a message via Yahoo to sdkramer
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.
sdkramer is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:44 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2