home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky alt.msdos.programmer:3225 comp.os.msdos.misc:7181 comp.os.msdos.programmer:12408
- Path: sparky!uunet!cs.utexas.edu!uwm.edu!ogicse!decwrl!waikato.ac.nz!canterbury.ac.nz!cantva!cctr132
- From: cctr132@csc.canterbury.ac.nz (Nick FitzGerald, PC Software Consultant, CSC, UoC, NZ)
- Newsgroups: alt.msdos.programmer,comp.os.msdos.misc,comp.os.msdos.programmer
- Subject: Re: Batch files
- Message-ID: <1993Jan25.134613.1@csc.canterbury.ac.nz>
- Date: 25 Jan 93 00:46:13 GMT
- Article-I.D.: csc.1993Jan25.134613.1
- References: <1993Jan24.135115.10741@gmuvax2.gmu.edu>
- Reply-To: Nick FitzGerald <n.fitzgerald@csc.canterbury.ac.nz>
- Organization: University of Canterbury, Christchurch, New Zealand
- Lines: 33
- Nntp-Posting-Host: cantva.canterbury.ac.nz
-
- 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 a pretty good idea of how to do the downloading would
- > work. There are about 50 computers which have to be configured
- > with the above procedure. So far we have used manual ways to do
- > this. If anyone has a nice way of doing this please let me
- > know.
-
- 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.
-
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Nick FitzGerald, PC Applications Consultant, CSC, Uni of Canterbury, N.Z.
- n.fitzgerald@csc.canterbury.ac.nz TEL:+64(3)364 2337, FAX:+64(3)364 2332
-