🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #6800

Re: More on my batch file problem

#6800
From: gordon hlavenka
Date: Thu, 23 May 1991 19:01
43 lines
1888 bytes
In article <49380@ut-emx.uucp> migdol@emx.utexas.edu (Michael A. Migdol) writes:
>
>     Ok, maybe I'm an idiot for trying to do this, but here's a summary of
>my efforts: I'm trying to run several applications in a row from a batch
>file. For various reasons, I've concluded that the machine needs to reboot
>between applications. So, here's what I've got:


I have done this before.  I needed to LL format, FDISK, DOS format, and scan
a couple dozen hard drives, so I set up a boot disk with script files and
stuff to do it.  The machine had to reboot three times for each drive.

I used a set of batch files called PASS1.BAT, PASS2.BAT, and PASS3.BAT to do
whatever was required for each pass.  PASS1.BAT contained the line:
     rem stuff you need to do first...
     ECHO xxx > PASS2
     REBOOT

PASS2.BAT contained the lines:
     rem stuff you need to do in the middle...
     IF EXIST PASS2 DEL PASS2
     ECHO xxx > PASS3
     REBOOT

PASS3.BAT contained the line:
     rem stuff you need to do last...
     IF EXIST PASS3 DEL PASS3

AUTOEXEC.BAT looked like this:
     IF EXIST PASS2 PASS2
     IF EXIST PASS3 PASS3
     PASS1

This seemed to sequence nicely.

Of course, if things work properly, you don't need the "IF EXIST"s in
PASS?.BAT, but I'm paranoid.


-- 
-----------------------------------------------------
Gordon S. Hlavenka            cgordon@vpnet.chi.il.us
Disclaimer:                Yeah, I said it.  So what?
Technical Details
Message-ID: <1991May23.190159.14448@vpnet.chi.il.us>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!jarthur!uunet!tellab5!vpnet!cgordon
References: <49380@ut-emx.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!jarthur!uunet!tellab5!vpnet!cgordon
From: cgordon@vpnet.chi.il.us (gordon hlavenka)
Newsgroups: comp.os.msdos.programmer
Subject: Re: More on my batch file problem
Message-ID: <1991May23.190159.14448@vpnet.chi.il.us>
Date: 23 May 91 19:01:59 GMT
References: <49380@ut-emx.uucp>
Distribution: na
Organization: Vpnet Public Access
Lines: 43