 |
The Question is:
Hi, I have 2 questions:
1. I want to do similar to a PURGE on a directory, but instead of deleting
lower versions of files, I want to rename them to another directory. I could
write a DCL command file to do it, but wondered if there is a cleaner way -
I've tried variations on:
a) $ rename *.*;-* [.purged]
b) $ rename /exclude=*.*;0 *.*;* [.purged]
but all attempts return a "no files found" message.
2. Is there a straightforward way of directing output to a file AND to the
screen simultaneously?
Thanks for any help,
HangTen
The Answer is :
1: A DCL command procedure would be the typical mechanism.
2: In what context? A TEE.COM procedure is available for
use with the DCL PIPE command, for instance. (Please
see the HELP PIPE text on V7.1 and later for a copy of
the TEE.COM procedure.)
|