It is partially in answer to a query from someone (=Djé), but really wasn't relevant to the overall thread discussion at the time.
Just in case it helps anyone else out, I'll list here my autoexec.bat file which I use to connect to my "server" which is running XP Pro, and which has NetBEUI installed.
It is based on the MS standard WinME boot disk:
@ECHO OFF path=c:\windows;c:\windows\command \hibinv.exe call \checksr.bat IF "%config%"=="QUICK" GOTO QUICK 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:\ path=%RAMD%:\;a:\;a:\net\;%path%;%CDROM%:\ copy command.com %RAMD%:\ > NUL set comspec=%RAMD%:\command.com copy extract.exe %RAMD%:\ > NUL copy readme.txt %RAMD%:\ > NUL :ERROR IF EXIST ebd.cab GOTO EXT echo Please insert Windows Millennium Edition Startup Disk 2 echo. pause GOTO ERROR :EXT %RAMD%:\extract /y /e /l %RAMD%: ebd.cab > NUL echo The diagnostic tools were successfully loaded to drive %RAMD%. echo. IF "%config%"=="NOCD" GOTO QUIT IF "%config%"=="HELP" GOTO HELP LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM% ::If MSCDEX doesn't find a drive... IF ERRORLEVEL 1 SET CDPROB=1 :: GOTO QUIT :HELP LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM% ::If MSCDEX doesn't find a drive... IF ERRORLEVEL 1 SET CDPROB=1 cls call help.bat :: GOTO QUIT :QUIT call fixit.bat rem clean up environment variables set CDPROB= set CDROM= set LglDrv= GOTO QUICK :QUICK echo. choice /C:yn "Would you like to load Smartdrive " if errorlevel=2 goto END if errorlevel=1 goto LOAD :LOAD smartdrv echo Smartdrive has been loaded GOTO NET :END cls echo Smartdrive has NOT been loaded. echo If you would like to load it, type "smartdrv" echo. :NET net init netbind net start /verbose /yes @echo on echo. call mapme010 echo. call redir
The only real changes I've made there are to include the "a:\net" to the path statement which contains the contents of an ancient (NT4) MS client boot floppy.
I've also used the "choice.com" so the end user can decide whether or not to load smartdrv, but this step is largely a waste of time
The "mapme010.bat" file looks like:
[menu] menuitem=HELP, Help menuitem=CD, Start computer with CD-ROM support. menuitem=NOCD, Start computer without CD-ROM support. menuitem=QUICK, Minimal Boot menudefault=HELP,30 menucolor=7,0 [HELP] 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 devicehigh=ramdrive.sys /E 2048 device=a:\net\ifshlp.sys [CD] 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 devicehigh=ramdrive.sys /E 2048 device=a:\net\ifshlp.sys [NOCD] devicehigh=ramdrive.sys /E 2048 device=a:\net\ifshlp.sys [QUICK] [COMMON] NumLock=On files=50 buffers=10 dos=high,umb stacks=9,256 lastdrive=z device=display.sys con=(ega,,1) country=044,850,country.sys install=mode.com con cp prepare=((850) ega.cpi) install=mode.com con cp select=850
The only changes there are adding the "device=a:\net\ifshlp.sys" entries so that the net bind type steps work.
Also, I have set the default boot menu entry to "HELP", so that if after kicking off an unattended install i get distracted and forget to remove my boot cd, it won't get stuck in an endless loop of doing the TEXTMODE portion of setup. Instead, it will get stuck in the WinME Help screen. So I can just remove my boot cd, reboot and let my unattended win setup continue.
Next one is the "system.ini"
[network] filesharing=no printsharing=no autologon=yes computername=Lane1 lanroot=A:\NET username=user workgroup=WORKGROUP reconnect=no dospophotkey=N lmlogon=0 preferredredir=full autostart=full maxconnections=8 [network drivers] ;netcard=elnk3.dos ;netcard=pcntnd.dos netcard=b57.dos transport=ndishlp.sys,*netbeui devdir=A:\NET LoadRMDrivers=yes [Password Lists] *Shares=A:\NET\Shares.PWL
Note that this example is specific to the Broadcom NetXtreme Gigabit Ethernet driver "b57.dos", so replace with whatever DOS/NDIS driver your network card requires.
Make sure to put whatever default username you are going to connect with in here.
The last file (really) is the "protocol.ini":
[network.setup] version=0x3110 netcard=ms$b57,1,MS$B57,3 transport=ms$ndishlp,MS$NDISHLP ;transport=tcpip-32l,MSTCP32 ;transport=tcpip,TCPIP ;lana0=ms$pcntn3,1,tcpip-32l ;lana0=ms$b57,1,tcpip lana1=ms$b57,1,ms$ndishlp [protman] DriverName=PROTMAN$ PRIORITY=MS$NDISHLP [MS$NDISHLP] DriverName=ndishlp$ BINDINGS=MS$B57 ;[MSTCP32] ;BINDINGS=MS$B57 ;LANABASE=0 [MS$B57] DriverName=B57$ LED1=0x0 [B57] Adapters=MS$B57 ;[tcpip] ;NBSessions=6 ;DefaultGateway0= ;SubNetMask0= ;IPAddress0= ;DisableDHCP=0 ;DriverName=TCPIP$ ;BINDINGS=MS$B57 ;LANABASE=0 [NETBEUI] DriverName=Netbeui$ SESSIONS=10 ncbs=12 BINDINGS=B57$ LANABASE=0
Notice I have commented out the sections to do with TCP/IP, since I'm using NetBEUI.
Again this example is for the Broadcom driver B57.dos
Note that in some places, it is lowercase and others uppercase.
I'm not sure how critical this is, but I think that at least some lines matter.
What i do if I'm changing this file to use a different driver, is use wordpad to do a "Find/Replace all" and make it CASE SENSITIVE, so I replace twice, once for lower case and once for upper case.
I hope that helps somebody out there and hasn't sent too many ppl off to sleep.
I suspect I could tidyup my batch files a bit and reduce the number of refs to A:\, since I do get a couple of errors saying things like
"error writing to drive a:
Abort, Retry, Ignore?"
If anyone can tell me the likely lines causing that I'd be grateful.
It seems to pop up just after accepting my password and saying "the command completed successfully".
Sorry for such a long post.
tU



Help
Back to top









