Help - Search - Members - Calendar
Full Version: Automatic partition harddisk and creation users
The CD Forum > CD Shell and Boot Scriptor > Requests & Contributions
cuongtv
I want to partition harddisk and create user in Windows (2000, Xp, 2003) by run a batch file. Then when I click batch file it automatic run like when I setup Windows. Please, help me. Thanks a lot!
pumuckl
Hi,
I have done this in the old DOS days.
There are inside FDISK.EXE commands to automate the partitioning of harddisks.
If you use the ME-Fdisk you will find switches e.g. at allmost at the end of the file:
QUOTE
PRI /EXT /LOG /PRIO /LOGO /Q /STATUS /? /MBR /X /ACTOK /CMBR /FPRMT /XMBR 

I just checked the availability of the of these switches for you in ME-Fdisk, so it should still work.

I used the following in 1994:
For a 200 Mb HD phys. Drive C: with C:=100, D:=60 & E:=40 gilt (2 Zeilen):

FDISK 1/PRI:100/EXT:100/LOG:60
FDISK 1/LOG:40

Beaware that in the first FDISK-Line you can only create the PRI, the EXT and only ONE(!) logical Drive within the bevore defined Extended Partition.
For subsequent further logigal patitions - here E: - you have to have the command in a seperate 'next line(!)' in the batch file.
It did work excelent for me setting up automatically by batch the PC's in our company.
You have to experiment on a new blank harddisk and to find out how to get FAT32, as I only used FAT16 in these old days - possible a switch like /FAT32, however it could be, that on the todays larger harddisk it will be allways a FAT32 partition created - so try it first with my example above and increase the size of the partition above the max. FAT16 size.

Hope this helps you a bit to start.

If you get more findings and switches (search within FDISK.EXE) it would nice if you PM me, as I currently not to often in the board.

Regards Horst alias Pumuckl
A3W275
Norton Ghost also has a gdisk utility that allows cmd scripting for partitioning and formatting.

Document ID:2002112213111525
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.