|
改成新版本的wenv(c版),运行正常了。
想法把LST文件改成批处理文件,出错
原WIM.LST文件:
debug off
terminal console
color white/blue blue/yellow light-red/blue 10
timeout 0
default 0
title RUN WIM PE2003
map --mem /COOLG/WIM/EXT.IMG.GZ (fd0)
map --hook
command --set-path=(fd0)/GRUB/
pause --wait=0 Copy Tools,Please waiting...
map --mem=0xb000 /COOLG/WIM/TOOLS.WIM (rd)
FAT copy (rd)+1 (fd0)/TOOLS.WIM
FAT copy /COOLG/WIM/TOOLS.INI (fd0)/
pause --wait=0 Copy Net Drivers,Please waiting...
FAT copy /COOLG/NET.CAB (fd0)/
checkrange 0x21 read 0x82a0 && pxe keep && goto 1
goto 2
title
clear
cat --length=0 /COOLG/SERV_SET.BAT || goto 2
FAT copy /COOLG/SERV_SET.BAT (fd0)/
WENV calc aa=*0x8288 & 0xff
WENV set ip=${aa}
WENV calc aa=*0x8288>>8 & 0xff
WENV set ip=${ip}.${aa}
WENV calc aa=*0x8288>>16 & 0xff
WENV set ip=${ip}.${aa}
WENV calc aa=*0x8288>>24 & 0xff
WENV set ip=${ip}.${aa}
WENV call write --offset=0x100 (fd0)/SERV_SET.BAT \r\nset PXE_SERVER=${ip}\r\n
WENV reset
goto 2
title
chainloader --force /COOLG/WIM/PXEWIM.0
--------------------------------上面正常运行
改成WIM.BAT文件:
!BAT
map --mem /COOLG/WIM/EXT.IMG.GZ (fd0)
map --hook
:command --set-path=(fd0)/GRUB/
insmod (fd0)/GRUB/WENV
insmod (fd0)/GRUB/FAT
pause --wait=0 Copy Tools,Please waiting...
map --mem=0xb000 /COOLG/WIM/TOOLS.WIM (rd)
FAT copy (rd)+1 (fd0)/TOOLS.WIM
FAT copy /COOLG/WIM/TOOLS.INI (fd0)/
pause --wait=0 Copy Net Drivers,Please waiting...
FAT copy /COOLG/NET.CAB (fd0)/
checkrange 0x21 read 0x82a0 && pxe keep && goto 1
goto 2
:1
clear
cat --length=0 /COOLG/SERV_SET.BAT || goto 2
FAT copy /COOLG/SERV_SET.BAT (fd0)/
WENV calc aa=*0x8288 & 0xff
WENV set ip=${aa}
WENV calc aa=*0x8288>>8 & 0xff
WENV set ip=${ip}.${aa}
WENV calc aa=*0x8288>>16 & 0xff
WENV set ip=${ip}.${aa}
WENV calc aa=*0x8288>>24 & 0xff
WENV set ip=${ip}.${aa}
WENV call write --offset=0x100 (fd0)/SERV_SET.BAT \r\nset PXE_SERVER=${ip}\r\n
WENV reset
:2
delmod wenv
delmod fat
chainloader --force /COOLG/WIM/PXEWIM.0
-----------------
总菜单:
debug off
terminal console
color white/blue blue/yellow light-red/blue 10
timeout 5
default 0
title RUN WIM PE2003
/COOLG/WIM.BAT
boot
title RUN IMG PE2003
/COOLG/IMG.BAT
boot
[ 本帖最后由 zhaohj 于 2010-12-16 12:47 编辑 ] |
|