|
|
9#

楼主 |
发表于 2004-5-19 21:49:14
|
只看该作者
[原创]如何实现新电脑无人自动装机!
整个过程的关键,PM的脚本
脚本如下:
dim sysdisk
sysdisk=7506
dim bakdisk
bakdisk=2048
Allow Manual Reboot
//默认情况下不检测坏扇区,提高操作速度
Set Default Bad Sector Test State OFF
Select Disk 1
//检测分区,当分区数量为0时才执行创建指令
if GetTotalPartitions = 0 then
//取得当前磁盘的容量
dim dSize
dSize=GetDiskSize
dim temp
if dSize<sysdisk then
//如果整个磁盘空间小于7500,那么整个分区作为一个主分区。
Select Unallocated 1
Create /FS=FAT32 /LABEL="System"
Set Active
else
Select Unallocated 1
Create /FS=FAT32 /Size=sysdisk /LABEL="System"
Set Active
dSize=dSize-sysdisk-bakdisk
temp=dSize*0.33
Select Unallocated 1
Create /FS=Extended /Size=dSize
Select Unallocated 1
Create /FS=FAT32 /Size=temp /LABEL="Game"
Select Unallocated 1
Create /FS=FAT32 /Size=temp /LABEL="Movie"
Select Unallocated 1
Create /FS=FAT32 /LABEL="Data"
Select Unallocated 1
Create /FS=FAT32 /LABEL="BACKUP_DISK"
Convert To Primary
end if
end if
大家看看还有什么要改进的地方 |
|