Sie sind auf Seite 1von 6

What can the NICFIND utility be used for ?

Network Boot Disks


For creating automatic Network Boot Disks which find the NIC installed and load
the corrected driver.
Windows NT Setup and Unattended Setup
Creating automatic detection of network cards within Windows NT 4.0 during the s
tandard installation and unattended setup installations. See how this utility co
uld work with the Unattended Setup click here.
MAKING THE AUTOMATIC NETWORK BOOT DISK
This disk support all popular network cards, Intel, 3COM, SMC, RealTek, DEC, Act
on and D-Link. To add more network card supports is a simple matter of adding th
e entries in the Autoexec and obtaining the .DOS file from the Network Adaptor.
Make a DOS 6.22 boot disk and test that it boots
Create the DOS folder and copy over files illustrated below in the layout of the
boot disk.
emm386.exe
EXTRACT.EXE
HIMEM.SYS
IFSHLP.SYS
RAMDRIVE.EXE
RAMDRIVE.SYS
Delete everything on the root except COMMAND.COM, MSDOS.SYS and IO.SYS which are
hidden. (Use 'dir /AH' command to check that the hidden files still exist on th
e floppy.)
Download and extract autonic.zip onto the floppy.
TOOLS.CAB - COMPNAME.EXE, DOMNAME.EXE, GSAR.EXE, MORE.COM, NIC_DEVS.TXT, NIC_VEN
D.TXT, NICFIND.EXE
All other .CAB files contain the system.ini, protocol.ini and network .dos drive
r.
* PLEASE NOTE : PCMICIA Network Card 3COM and XIRCOM require the Card Services l
oaded within the config.sys however once the Card Services are loaded the method
can be used.
* SUPPORT FILES for DOS are available from
ftp://ftp.microsoft.com/bussys/clients/msclient/ (IFSHLP.SYS, EXPAND.EXE) the r
est of stuff you need to have the DOS 6.22 from Microsoft. Unfortunately can't u
pload them to the site because of licensing. However you could try downloading a
BIOS boot disk off one of the large vendor (HP, DELL, COMPAQ) this is a good wa
y to get those old DOS files.
How does the utility work ?
NICFIND when ran scans the PCI bus and reports back the DID (Device ID) of the N
etwork Card and sets Environment variables. These Environment Variable can be us
ed with a batch or in INI and INF via GSAR utility. The GSAR utility is a comman
d line find and replace utility. (The GSAR is part on Unix Tools for Windows NT
download able for i386.) For example of an Intel Card the following Environment
variables would be set.
Example:
NICNUM=80861229

SLOTNUM=2
DEVNUM=3
BUSNUM=0
The NICNUM= reported by NICFIND is a combination of the Vendor and Device IDs,
thus providing a ID unique to a specific NIC. The other values are sometimes req
uired by a
NICs driver at the bottom of the PROTOCOL.INI file.
The Tool comes with two TXT files. One contains the VID's (Vendor ID) and DID's
both contain descriptions.
Example of VID's :
10B7 3COM Corp
10EC Realtek Semiconductor
8086 Intel
Example of DID's
10B79050 3C905 Fast Etherlink 10/100
10B79051 3C905-T4 Fast Etherlink XL 10/100
10EC8129 RT8129 Fast Ethernet Adapter
10EC8139 RT8139 Fast Ethernet Adapter
80861000 82542 Gigabit Ethernet Adapter
80861226 82596 EtherExpress PRO/10
The first four digits of the DID is the VID. There is a complete list of VID and
DID with descriptions with the NICFIND utility.

AUTOEXEC.BAT
@ECHO OFF
@CLS
REM
REM NICFIND supports PCI 2.0 and higher network adapters
REM
REM the order in which the following lines reside are essential to their functio
nality
REM
REM the redirects to null "> NUL" are to suppress echoing to the screen,
REM make sure you don't put the them on lines where you want to see output,
REM such as the NICFIND tool which will prompt when multiple nics found,
REM or the DOMNAME tool as it prompts for a Domain Name
REM
SET PATH=A:\DOS;A:\;%PATH%
REM
REM following tool runs and sets the RAMDRVL environment variable
REM RAMDRVL is used to locate the MS RAMDRIVE elsewhere in this batch file
@ECHO Locating RAM Drive...
@A:\DOS\RAMDFIND.EXE > NUL
REM
REM following lines sets environment variables for MS Client NET path and INI Re
place Path
REM INI Replace Path has an extra colon to accomodate the command line tool GSAR
.EXE
@SET NETPATH=%RAMDRVL%\MSNET
REM the RNETPATH is the environment variable representing the replacement path f
or the INI
@SET RNETPATH=%RAMDRVL%:\MSNET

REM
REM following creates the tool path, adds it to the PATH variable, and extracts
tools into it
@MD %RAMDRVL%\TOOLS
@SET PATH=%RAMDRVL%\TOOLS;%RAMDRVL%\;%PATH%
@MD %RAMDRVL%\TEMP
@SET TEMP=%RAMDRVL%\TEMP
REM
REM copy the extract.exe to the tools folder of ram drive for faster extract
@COPY A:\DOS\EXTRACT.EXE %RAMDRVL%\TOOLS > NUL
REM
REM copy the command.com to the root of ram drive then set COMSPEC to it for fas
ter command.com
@COPY COMMAND.COM %RAMDRVL%\ > NUL
@SET COMSPEC=%RAMDRVL%\COMMAND.COM
REM
REM Change current directory to the root of the RAM Drive for speedy COMMAND.COM
REM first to the RAM drive letter by executing the drive letter with colon from
environment variable
@%RAMDRVL%
REM then be sure to be in the root so CD \
@CD \
REM
@ECHO Extracting tools...
REM extract tools to tools folder on ram drive
@EXTRACT /L %RAMDRVL%\TOOLS A:\TOOLS.CAB *.* > NUL
REM
REM following tool runs and sets the NICNUM environment variable
REM NICNUM is used to uniquely identify the PCI network adapter in the system
REM In version 2 of NICFIND it sets the DEVNUM, BUSNUM and SLOTNUM variables to
aid in
REM dynamically setting the PCI NICs additional PROTOCOL.INI settings.
REM BUSNUM - is the PCI Bus number at a base of zero
REM DEVNUM - is the PCI Device number at a base of one (unlike the base 0 that P
CI BIOS uses)
REM SLOTNUM - is the PCI Device number at a base of zero (like PCI BIOS uses)
REM Initialize the variable to avoid null/blank environment variable
@SET NICNUM=XXXXXXXX
@ECHO Running NIC Find tool...
@NICFIND.EXE
REM
REM create the net directory
@MD %NETPATH%
REM
REM in the following some NICs are set to use identical network drivers and GOTO
same place
REM following lines check nicnum and goto applicable nic section based on NICNUM
variable
IF %NICNUM%==10D90531 GOTO 10D90531
IF %NICNUM%==10EC8139 GOTO 10EC8139
IF %NICNUM%==80861229 GOTO 80862449
IF %NICNUM%==80862449 GOTO 80862449
IF %NICNUM%==10B79050 GOTO 10B79050
IF %NICNUM%==10B79051 GOTO 10B79050
IF %NICNUM%==10B79056 GOTO 10B79050
IF %NICNUM%==10B79058 GOTO 10B79050
IF %NICNUM%==10B7905A GOTO 10B79050
IF %NICNUM%==10B79055 GOTO 10B79050
IF %NICNUM%==10B79200 GOTO 10B79050
IF %NICNUM%==11AD0002 GOTO 11AD0002

IF %NICNUM%==10110009 GOTO 10110009


IF %NICNUM%==10110002 GOTO 10110002
IF %NICNUM%==11131211 GOTO 11131211
IF %NICNUM%==11861300 GOTO 11861300
REM
REM following goto will take to error section of batch file if nic not found/ide
ntified
GOTO NONIC
REM
REM following is ndc nic label of the batch file
:10D90531
REM following extracts applicable NIC files to the net path
@ECHO Extracting NIC files...
@EXTRACT /L %NETPATH% A:\FE100A.CAB *.* > NUL
GOTO EXTNET
REM
REM following is Realtek rtl8139 nic label of the batch file
:10EC8139
REM following extracts applicable NIC files to the net path
@ECHO Extracting NIC files...
@EXTRACT /L %NETPATH% A:\RTSND.CAB *.* > NUL
GOTO EXTNET
REM
REM following is Intel Pro/100 nic label of the batch file
:80862449
REM following extracts applicable NIC files to the net path
@ECHO Extracting NIC files...
@EXTRACT /L %NETPATH% A:\E100B.CAB *.* > NUL
GOTO EXTNET
REM
REM following is 3COM 3C905 nic label of the batch file
:10B79050
REM following extracts applicable NIC files to the net path
@ECHO Extracting NIC files...
@EXTRACT /L %NETPATH% A:\EL90X.CAB *.* > NUL
@GSAR -s+slotnum+ -r%SLOTNUM% -i -o %NETPATH%\PROTOCOL.INI > NUL
GOTO EXTNET
REM
REM following is Lite-On LNE100TX nic label of the batch file
:11AD0002
REM following extracts applicable NIC files to the net path
@ECHO Extracting NIC files...
@EXTRACT /L %NETPATH% A:\KTC110.CAB *.* > NUL
GOTO EXTNET
REM
REM following is DEC 21140 DE500 nic label of the batch file
:10110009
REM following extracts applicable NIC files to the net path
@ECHO Extracting NIC files...
@EXTRACT /L %NETPATH% A:\DE500.CAB *.* > NUL
GOTO EXTNET
REM
:10110002
REM following extracts applicable NIC files to the net path
@ECHO Extracting NIC files...
@EXTRACT /L %NETPATH% A:\TULIP.CAB *.* > NUL
GOTO EXTNET
REM
REM following is Acton EN-1207D (SMC-1211) nic label of the batch file
:11131211

REM following extracts applicable NIC files to the net path


@ECHO Extracting NIC files...
@EXTRACT /L %NETPATH% A:\SMC1211.CAB *.* > NUL
@GSAR -s+busnum+ -r%BUSNUM% -i -o %NETPATH%\PROTOCOL.INI > NUL
@GSAR -s+devnum+ -r%DEVNUM% -i -o %NETPATH%\PROTOCOL.INI > NUL
GOTO EXTNET
REM
REM following is D-Link DFE-530TX+ nic label of the batch file
:11861300
REM following extracts applicable NIC files to the net path
@ECHO Extracting NIC files...
@EXTRACT /L %NETPATH% A:\DLKRTS.CAB *.* > NUL
@GSAR -s+busnum+ -r%BUSNUM% -i -o %NETPATH%\PROTOCOL.INI > NUL
@GSAR -s+devnum+ -r%DEVNUM% -i -o %NETPATH%\PROTOCOL.INI > NUL
GOTO EXTNET
REM
REM following for error section of batch file if nic not found/identified and th
en goto end
:NONIC
@ECHO No network adapter found, or network adapter not supported
GOTO END
REM
REM following is the extract label of the batch file
:EXTNET
REM following creates the net path, adds it to the PATH variable, and extracts t
ools into it
@SET PATH=%NETPATH%;%PATH%
@ECHO Extracting core network files...
@EXTRACT /L %NETPATH% A:\MSNET.CAB *.* > NUL
GOTO PREPNET
REM
REM following is the prepare net INI label of the batch file
:PREPNET
REM
REM Initialize the variable to avoid null/blank environment variable
REM following line sets the random computer name and gets domain name
@SET COMPNAME=IMAGEPC
@ECHO Setting random computer name...
@COMPNAME.EXE > NUL
@SET DOMNAME=DOMAIN
@DOMNAME.EXE
REM the echo. echos a blank line
@ECHO.
REM
REM following lines are for the nt tcp/ip dos client
REM the RNETPATH is the environment variable representing the replacement path f
or the INI
REM following lines change strings in the Nework INI file to match the current s
ystem
@ECHO Modifying network files...
@GSAR -s+path+ -r%RNETPATH% -i -o %NETPATH%\SYSTEM.INI > NUL
@GSAR -s+compname+ -r%COMPNAME% -i -o %NETPATH%\SYSTEM.INI > NUL
@GSAR -s+compname+ -r%COMPNAME% -i -o %NETPATH%\TCPUTILS.INI > NUL
@GSAR -s+domname+ -r%DOMNAME% -i -o %NETPATH%\SYSTEM.INI > NUL
GOTO LOADNET
REM
REM following is the load net label of the batch file
:LOADNET
REM following lines are for the nt tcp/ip dos client
@ECHO Loading network files...

@ECHO.
@%NETPATH%\net initialize
@%NETPATH%\netbind.com
@%NETPATH%\umb.com
@%NETPATH%\tcptsr.exe
@%NETPATH%\tinyrfc.exe
@%NETPATH%\nmtsr.exe
@%NETPATH%\emsbfr.exe
rem following lines are remmed to free memory, required for dns name and sockets
rem @%NETPATH%\dnr.exe
rem @%NETPATH%\sockets.exe
@%NETPATH%\net start
@ECHO.
GOTO DOLOGON
REM
REM following is the do disk image label of the batch file
:DOLOGON
REM the logon start here
@%NETPATH%\NET LOGON /SAVEPW:NO
GOTO END
REM
REM following is the end label of the batch file
:END
ECHO.
CONFIG.SYS
DOS=AUTO
DOS=HIGH,UMB
DEVICE=A:\DOS\HIMEM.SYS
DEVICE=A:\DOS\EMM386.EXE NOEMS
DEVICE=A:\DOS\IFSHLP.SYS
REM Following creates a 16MB RAM drive in
REM Extended Memory (/E), largest RAMDRIVE is 32767
DEVICE=A:\DOS\RAMDRIVE.SYS 16384 /E
REM following is dos environment settings
STACKS=9,256
FILES=60
BUFFERS=30
FCBS=16,0
SHELL=A:\COMMAND.COM /E:1024 /P
LASTDRIVE=Z

Das könnte Ihnen auch gefallen