home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.protocols.tcp-ip.ibmpc:7396 comp.sys.ibm.pc.misc:16591 comp.dcom.lans.ethernet:2958 comp.os.msdos.programmer:12028
- Newsgroups: comp.protocols.tcp-ip.ibmpc,comp.sys.ibm.pc.misc,comp.dcom.lans.ethernet,comp.os.msdos.programmer
- Path: sparky!uunet!newsflash.concordia.ca!nstn.ns.ca!KSpeichts.UCIS.Dal.Ca!kspeicht
- From: kspeicht@kilcom1.ucis.dal.ca (Kevin F. Speichts)
- Subject: Re: BOOTP, pkt drivers, and ethernet board type
- Message-ID: <kspeicht.92.726869186@kilcom1.ucis.dal.ca>
- Sender: usenet@nstn.ns.ca (NNTP Entity)
- Organization: Dalhousie University, Halifax, Nova Scotia
- References: <PCG.93Jan12184450@decb.aber.ac.uk>
- Date: Tue, 12 Jan 1993 20:06:26 GMT
- Lines: 38
-
-
- >Suppose you had hundred of PCs running MSDOS attached to a various
- >number of Ethernets, by way of a dozen different types of cards (ISOLAN,
- >WD, 3COM, ...).
-
- .. stuff removed ..
-
- >In other words I'd rather like two new DOS commands, 'nifset <number>'
- >to record somewhere safe the type of the card in a machine, and
- >'niftype' that returns the same <number> in the 'errorlevel'.
-
- >I'd like to know if anybody has already thought along the same lines,
- >and has already done something like this, and I welcome anybody's
- >comments and suggestions on how to do this; in particular about:
-
-
- You say each machine already has a hard disk, here might be a
- simpler solution. Create a file called enetcard.crd or something (ex.
- wd8003e.crd or 3com.crd) on each hard drive. This could be a dummy file
- with no text in it if you like. Put it in the root directory or DOS
- directory on the drive. Write lock it with the ATTRIB +R DOS command, maybe
- hide it as well with the ATTRIB +H command. Then use the DOS commands;
-
- IF EXISTS c:\wd8003e.crd goto WESTERN
-
- or use
-
- IF EXISTS c:\dos\3com.crd goto 3COM.
-
- You can control program flow this way as well as the errorlevel method (I'm
- assuming your using DOS batch commands). This may or may not do the trick
- for you depending on your situation. If someone deletes or renames this
- file it will throw the scheme off.
-
-
-
-
-
-