
C
C
h
h
a
a
p
p
t
t
e
e
r
r
8
8
7
7
5
5
Using CHKID within .BAT files
The CHKID command can be issued within a .BAT file (e.g. AUTOEXEC.BAT) with a node
address. CHKID checks the network to determine if the current PC address matches the
address specified on the command line, and sets the DOS ERRORLEVEL as follows:
If matched, ERRORLEVEL is set to 0
If not matched, ERRORLEVEL is set to 1
If syntax error, ERRORLEVEL is set to 2
Based on the ERRORLEVEL value, the flow of the .BAT file may be redirected as required by
the PC.
A sample .BAT file, AUTOID.BAT is provided on the MBA Utility Disk or MBA subdirectory on
the EtherCD. This file gives a sample structure for an AUTOEXEC.BAT-type batch file using
the CHKID command.
If you have never used the batch file ERRORLEVEL command before, note that you must test
for the highest value of ERRORLEVEL first. If you test for an error level=0, you will match
ALL THREE conditions. The correct method is to test for an error level=2 first, and to branch
based on this condition.
N
N
O
O
T
T
E
E
:
:
When using CHKID you must ensure that you do not use the Loader
option when creating your boot image in the Boot Image Editor.
B
B
o
o
o
o
t
t
I
I
m
m
a
a
g
g
e
e
E
E
d
d
i
i
t
t
o
o
r
r
:
:
E
E
d
d
i
i
t
t
a
a
n
n
d
d
V
V
i
i
e
e
w
w
B
B
o
o
o
o
t
t
I
I
m
m
a
a
g
g
e
e
F
F
i
i
l
l
e
e
s
s
Boot Image Editor allows you to examine or edit the contents of DOS boot image files. For
details see the Boot Image Editor online help. To install Boot Image Editor, see “
Boot Image
Editor Installation
” in Chapter 2 “Installing MBA.”
R
R
O
O
M
M
T
T
Y
Y
P
P
E
E
:
:
C
C
o
o
n
n
d
d
i
i
t
t
i
i
o
o
n
n
a
a
l
l
E
E
x
x
e
e
c
c
u
u
t
t
i
i
o
o
n
n
B
B
a
a
s
s
e
e
d
d
o
o
n
n
M
M
B
B
A
A
T
T
y
y
p
p
e
e
ROMTYPE is a utility that you can use to identify the type of ROM in a PC. This information
can be used in a batch file to load the correct driver for the NIC. A sample batch file,
ROM.BAT is included on the MBA Utility Disk or MBA subdirectory on the EtherCD.
There are two methods for using ROMTYPE to identify the ROM:
If you are using a PCI NIC, you can check the NIC's PCI Vendor ID and Device ID by
specifying the Vendor ID and Device ID of the NIC that you wish to test on the
command line as a combined value.
Usage: romtype [VendorIDDeviceID]
Содержание e-PC c10/s10
Страница 1: ...2 1 Edition ...
Страница 2: ......
Страница 4: ......
Страница 12: ......
Страница 22: ...1 10 0 C Ch ha ap pt te er r 2 2 ...
Страница 44: ......
Страница 58: ...4 46 6 C Ch ha ap pt te er r 5 5 ...
Страница 92: ...8 80 0 C Ch ha ap pt te er r 8 8 ...
Страница 108: ...9 96 6 A Ap pp pe en nd di ix x A A ...
Страница 112: ...1 10 00 0 W Wa ar rr ra an nt ty y ...
Страница 122: ...110 I In nd de ex x Updating with MBA ROM 28 Verbose mode 34 Wired for Management 58 ...