Ever had a huge directory of files and wanted to do the exact same thing to
each one of them? Did you do them all by hand, proclaiming all the while
that there MUST be a better way?! Well, there is.
Most people aren't into using variables with scriptfiles, but that's the
secret to having (mere) DOS do everything for you. It's just that you need a
template to use, and that's what this is. Just fill in the blanks with the
same commands you'd use for ONE of the files, and this reads the whole
directory then does the same routine to EVERY file, very nice.
The second enclosed script in an ARexx file, and it does this:
Let's say you have 500 files in a directory and a list of 250 of them that
you want to move (Rename) to a different directory. Hmm, might take a while
by hand, eh? Edit the enclosed ARexx file to inject a "Rename" before every
entry on the list and a destination path after each entry. RXecute the ARexx
file and then simply Execute the outputted file. Piece o' cake. - TBM
|