home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / msdos / programm / 3225 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  2.2 KB

  1. Xref: sparky alt.msdos.programmer:3225 comp.os.msdos.misc:7181 comp.os.msdos.programmer:12408
  2. Path: sparky!uunet!cs.utexas.edu!uwm.edu!ogicse!decwrl!waikato.ac.nz!canterbury.ac.nz!cantva!cctr132
  3. From: cctr132@csc.canterbury.ac.nz (Nick FitzGerald, PC Software Consultant, CSC, UoC, NZ)
  4. Newsgroups: alt.msdos.programmer,comp.os.msdos.misc,comp.os.msdos.programmer
  5. Subject: Re: Batch files
  6. Message-ID: <1993Jan25.134613.1@csc.canterbury.ac.nz>
  7. Date: 25 Jan 93 00:46:13 GMT
  8. Article-I.D.: csc.1993Jan25.134613.1
  9. References: <1993Jan24.135115.10741@gmuvax2.gmu.edu>
  10. Reply-To: Nick FitzGerald <n.fitzgerald@csc.canterbury.ac.nz>
  11. Organization: University of Canterbury, Christchurch, New Zealand
  12. Lines: 33
  13. Nntp-Posting-Host: cantva.canterbury.ac.nz
  14.  
  15. In article <1993Jan24.135115.10741@gmuvax2.gmu.edu>, skhan@gmuvax2.gmu.edu
  16. (Shahab Raza Khan) writes:
  17.  
  18. > I have an interesting question.  I want to write a batch file
  19. > which would do the following:
  20. > 1. Down load our backup software from one of our LANs.  The
  21. >    software is not in compressed form but regular files.
  22. > 2. Edit the autoexec.bat file to login to separate accounts on
  23. >    the LAN (e.g. user1, user2 etc)
  24. > 3. edit the config.tel file (for use with telnet) and change the
  25. >    IP number in it (e.g. 129.174.1.1 129.174.1.2 etc)
  26. > I have a pretty good idea of how to do the downloading would
  27. > work.  There are about 50 computers which have to be configured
  28. > with the above procedure.  So far we have used manual ways to do
  29. > this.  If anyone has a nice way of doing this please let me
  30. > know.
  31.  
  32. I have followed up in News rather than mailing as requested, as this may
  33. be of more general interest.
  34.  
  35. Believe it or not, EDLIN (that most ghastly of DOS "utilities") may be
  36. the answer to your problem.  Its (sole ?) virtue lies in the fact that
  37. it reads from stdin, so can be driven by a script file.
  38.  
  39. I've never used it in this manner (I've never used full stop, he adds
  40. proudly  8-) ), but have seen some fiendishly clever batches in PC Mag
  41. based (in part) on this.
  42.  
  43. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  44.  Nick FitzGerald, PC Applications Consultant, CSC, Uni of Canterbury, N.Z.
  45.  n.fitzgerald@csc.canterbury.ac.nz  TEL:+64(3)364 2337, FAX:+64(3)364 2332
  46.