🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #13809

batch programming, looping

#13809
From: Brett Shepard
Date: Fri, 05 Apr 1991 17:08
29 lines
1591 bytes

I'm fairly new at complex batch programming, and I've made the discovery that
the DOS 3.3 manual isn't very helpful.

I'm trying to create a program to copy files from floppy to hard disk.  The
program should be able to handle a varying number of floppys - as entered
from the command line.

My question is how do I set up the counter variable in the program so that
I can loop through the copying routine for each disk?

I tried setting an environment variable to 0, then incrementing the
environment var, but that didn't work at all.

How do I create and use a variable in a batch program, and if I can't,
how do I code it to loop a variable number of times?

Any and all help/suggestions are welcome and greatly appreciated.

PS - please e-mail, I don't get much time to read this...

B

-------------------------------------------------------------------------------
"Just the opinions, ma'am."  |   Brett Shepard         | Close your eyes and 
Go ahead, crash our system!  |   Ball State University | pretend that there is
UUCP:  shepard@bsu-cs.bsu.edu|   Muncie, IN            | a fancy graphic here
-------------------------------------------------------------------------------
Technical Details
Message-ID: <12618@bsu-cs.bsu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!samsung!spool.mu.edu!news.cs.indiana.edu!bsu-cs!shepard

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!samsung!spool.mu.edu!news.cs.indiana.edu!bsu-cs!shepard
From: shepard@bsu-cs.bsu.edu (Brett Shepard)
Newsgroups: comp.sys.ibm.pc
Subject: batch programming, looping
Keywords: HELP!!!!!
Message-ID: <12618@bsu-cs.bsu.edu>
Date: 5 Apr 91 17:08:52 GMT
Organization: CS Dept, Ball St U, Muncie, IN, USA
Lines: 29