Article View: alt.msdos.programmer
Article #1023Re: Batch files
From: Shahab Raza Khan
Date: Mon, 25 Jan 1993 18:03
Date: Mon, 25 Jan 1993 18:03
45 lines
2431 bytes
2431 bytes
In article <1993Jan25.152249.8789@udel.edu> darkstar@pecan.cns.udel.edu (The Janitor Of Anarchy) writes: >In article <1993Jan25.134613.1@csc.canterbury.ac.nz> Nick FitzGerald <n.fitzgerald@csc.canterbury.ac.nz> writes: >>In article <1993Jan24.135115.10741@gmuvax2.gmu.edu>, skhan@gmuvax2.gmu.edu >>(Shahab Raza Khan) writes: >> >>> I have an interesting question. I want to write a batch file >>> which would do the following: >>> >>> 1. Down load our backup software from one of our LANs. The >>> software is not in compressed form but regular files. >>> 2. Edit the autoexec.bat file to login to separate accounts on >>> the LAN (e.g. user1, user2 etc) >>> 3. edit the config.tel file (for use with telnet) and change the >>> IP number in it (e.g. 129.174.1.1 129.174.1.2 etc) >> >>I have followed up in News rather than mailing as requested, as this may >>be of more general interest. >> >>Believe it or not, EDLIN (that most ghastly of DOS "utilities") may be >>the answer to your problem. Its (sole ?) virtue lies in the fact that >>it reads from stdin, so can be driven by a script file. >> >>I've never used it in this manner (I've never used full stop, he adds >>proudly 8-) ), but have seen some fiendishly clever batches in PC Mag >>based (in part) on this. > >Can anyone please post an example of how to do this? Thanks in >advance... > The way i wanted to do this is invoke tha batch file whti a value eg. download 15. Not 15 would be the value for the IP address and LAN account. but the problem os that i cannot put it in the config.tel file. The way to direct it from stdin is easy just type edlin filename < file2 where file2 would be all the commands for edlin. -- Shahab Raza Khan George Mason University skhan@gmuvax.bitnet Dept. of Computer Science skhan@gmuvax2.gmu.edu Fairfax, Virginia
Technical Details
Message-ID:
<1993Jan25.180312.15378@gmuvax2.gmu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!news.umbc.edu!gmuvax2!skhanReferences:
<1993Jan24.135115.10741@gmuvax2.gmu.edu> <1993Jan25.134613.1@csc.canterbury.ac.nz> <1993Jan25.152249.8789@udel.edu>Show Full Headers
Complete Article Headers
Newsgroups: alt.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!news.umbc.edu!gmuvax2!skhan From: skhan@gmuvax2.gmu.edu (Shahab Raza Khan) Subject: Re: Batch files Message-ID: <1993Jan25.180312.15378@gmuvax2.gmu.edu> Followup-To: alt.msdos.programmer Keywords: starfish and coffee... Organization: George Mason University, Fairfax, Va. References: <1993Jan24.135115.10741@gmuvax2.gmu.edu> <1993Jan25.134613.1@csc.canterbury.ac.nz> <1993Jan25.152249.8789@udel.edu> Date: Mon, 25 Jan 1993 18:03:12 GMT Lines: 46