home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / protocol / tcpip / ibmpc / 7396 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  2.0 KB

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