home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / msdos / programm / 3232 < prev    next >
Encoding:
Text File  |  1993-01-25  |  2.3 KB  |  59 lines

  1. Newsgroups: alt.msdos.programmer
  2. Path: sparky!uunet!haven.umd.edu!news.umbc.edu!gmuvax2!skhan
  3. From: skhan@gmuvax2.gmu.edu (Shahab Raza Khan)
  4. Subject: Re: Batch files
  5. Message-ID: <1993Jan25.180312.15378@gmuvax2.gmu.edu>
  6. Followup-To: alt.msdos.programmer
  7. Keywords: starfish and coffee...
  8. Organization: George Mason University, Fairfax, Va.
  9. References: <1993Jan24.135115.10741@gmuvax2.gmu.edu> <1993Jan25.134613.1@csc.canterbury.ac.nz> <1993Jan25.152249.8789@udel.edu>
  10. Date: Mon, 25 Jan 1993 18:03:12 GMT
  11. Lines: 46
  12.  
  13. In article <1993Jan25.152249.8789@udel.edu> darkstar@pecan.cns.udel.edu (The Janitor Of Anarchy) writes:
  14. >In article <1993Jan25.134613.1@csc.canterbury.ac.nz> Nick FitzGerald <n.fitzgerald@csc.canterbury.ac.nz> writes:
  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. >>> 
  21. >>> 1. Down load our backup software from one of our LANs.  The
  22. >>>    software is not in compressed form but regular files.
  23. >>> 2. Edit the autoexec.bat file to login to separate accounts on
  24. >>>    the LAN (e.g. user1, user2 etc)
  25. >>> 3. edit the config.tel file (for use with telnet) and change the
  26. >>>    IP number in it (e.g. 129.174.1.1 129.174.1.2 etc)
  27. >>
  28. >>I have followed up in News rather than mailing as requested, as this may
  29. >>be of more general interest.
  30. >>
  31. >>Believe it or not, EDLIN (that most ghastly of DOS "utilities") may be
  32. >>the answer to your problem.  Its (sole ?) virtue lies in the fact that
  33. >>it reads from stdin, so can be driven by a script file.
  34. >>
  35. >>I've never used it in this manner (I've never used full stop, he adds
  36. >>proudly  8-) ), but have seen some fiendishly clever batches in PC Mag
  37. >>based (in part) on this.
  38. >
  39. >Can anyone please post an example of how to do this?  Thanks in
  40. >advance...
  41. >
  42.  
  43. The way i wanted to do this is invoke tha batch file whti a
  44. value eg. download 15.
  45.  
  46. Not 15 would be the value for the IP address and LAN account.
  47. but the problem os that i cannot put it in the config.tel file.
  48.  
  49. The way to direct it from stdin is easy just type
  50. edlin filename < file2
  51.  
  52. where file2 would be all the commands for edlin.
  53.  
  54. -- 
  55. Shahab Raza Khan              George Mason University
  56. skhan@gmuvax.bitnet           Dept. of Computer Science
  57. skhan@gmuvax2.gmu.edu         Fairfax, Virginia
  58.  
  59.