Hey,
a question to all the DOS batch experts.
I'd like to create a looping batch script that does slightly different things (but effectively the same), but to different targets.
I know how to do it in rexx, but i'm not firm enough to pull it off in .bat.
Here's what i like to achieve (i have the loop figured out, but i don't know how to set up the target(s), so that the loop will read them one by one.
target="path1", "path2", "path3", "end"
LAB Main
if target EQ "end"
QUIT
endif
if target EQ "path1"
do stuff
endif
else
do other stuff
endif
SKIP BACK Main
Any help appreciated, thank you very much