|  | 
 
| 【引言】以前我们是这样通过网络作Ghost的:制作一张DOS软盘加载网卡驱动和网络协议TCP/IP,利用 net use x: \\ghostserver\ghost$ 映射网络盘,进行网络Ghost.
 【局限性】一张软盘最多也只能放两种网卡驱动,没有扩展空间,软盘容易坏,软驱容易烂,并且引导过程有文件回写到软盘。
 于是想到利用内存虚拟盘的作用,移植到光盘或硬盘里面。下面是我的用Win98引导盘修改的文件,但我不知道怎么把动态的内存虚拟盘符写道*.ini文件中,各位帮帮忙,看看怎么实现:把autoexec.bat中得到的虚拟盘符写到system.ini文件的“lanroot=a:"中,替代a:\。
 
 [Autoexec.bat]
 
 @ECHO OFF
 set EXPAND=YES
 SET DIRCMD=/O:N
 set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
 set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
 cls
 call setramd.bat %LglDrv%
 set temp=c:\
 set tmp=c:\
 LH CTMOUSE >NUL
 path=%RAMD%:\;a:\;%CDROM%:\
 copy command.com %RAMD%:\ > NUL
 set comspec=%RAMD%:\command.com
 
 LH A:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
 lh doskey > NUL
 lh escape.exe > NUL
 lh KILLER.exe > NUL
 
 %RAMD%:
 copy A:\. %RAMD%: >NUL
 
 goto %config%
 
 :3c90x
 copy %RAMD%:\pro3c90x.ini %RAMD%:\protocol.ini /y
 copy %RAMD%:\sys3c90x.ini %RAMD%:\system.ini /y
 goto next
 
 :8139
 copy %RAMD%:\pro8139.ini %RAMD%:\protocol.ini /y
 copy %RAMD%:\sys8139.ini %RAMD%:\system.ini /y
 goto next
 
 :next
 %RAMD%:
 %RAMD%:\net initialize
 %RAMD%:\netbind.com
 %RAMD%:\umb.com
 %RAMD%:\tcptsr.exe
 %RAMD%:\tinyrfc.exe
 %RAMD%:\nmtsr.exe
 %RAMD%:\emsbfr.exe
 %RAMD%:\net start
 net use x: \\ghostserver\ghost$
 
 ****************************************************
 [config.sys]
 device=himem.sys /testmem:off
 device=oakcdrom.sys /D:mscd001
 device=btdosm.sys
 device=flashpt.sys
 device=btcdrom.sys /D:mscd001
 device=aspi2dos.sys
 device=aspi8dos.sys
 device=aspi4dos.sys
 device=aspi8u2.sys
 device=aspicd.sys /D:mscd001
 files=30
 buffers=30
 device=ifshlp.sys
 DEVICE=EMM386.EXE NOEMS
 dos=high,umb
 stacks=9,256
 devicehigh=ramdrive.sys /E 2048
 lastdrive=z
 
 
 [MENU]
 MENUITEM=3C90X,3Com 3C90X
 MENUITEM=8139,TP-LINK 8139
 
 MENUDEFAULT=3C90X
 MENUCOLOR=15,1
 
 [3C90X]
 [8139]
 
 **********************************************
 【system.ini】
 [network]
 filesharing=no
 printsharing=no
 autologon=yes
 computername=dos22k
 lanroot=a:
 username=ghostuser
 workgroup=testghost
 reconnect=no
 dospophotkey=N
 lmlogon=0
 logondomain=testghost
 preferredredir=full
 autostart=full
 maxconnections=8
 
 [network drivers]
 netcard=RTSND.DOS
 transport=tcpdrv.dos,nemm.dos
 devdir=a:
 LoadRMDrivers=yes
 
 [Password Lists]
 ;Shares=a:\Share000.PWL
 
 [ 本帖最后由 win_study 于 2006-12-15 04:22 PM 编辑 ]
 | 
 |