[NTISP] Command Line File Copy

Norris Sydnor ( (no email) )
Wed, 03 Feb 1999 21:25:58 -0500

I am looking for a way to copy a file from one directory to another using
the command line. The catch is, when it does the copy, there will already
be files in the destination directory with the same name. Is there a way
to give the files the same name with perhaps the ext containing some
incremented number.

What I am trying to do is take our Radius detail file which grows daily and
copy it to a storage location and then delete the version in the source
directory. This way, I will have a detail file for every day instead of
one large file for the whole month (which is when I manually change the file).

It has to be a command line solution that I can use my scheduler to run
every night at midnight. Once I delete the source one, there is no need for
me to create another one. Radius automatically creates a new file if it
does not see one.

Best Regards,

Norris Sydnor
**************************************
Capital City Internet
Washington D.C. and Baltimore's Internet Success Provider
1-888-249-0027 (24/7)
http://www.capcity.net
**************************************

For more information about this list, including removal,
see this url: http://www.iea-software.com/maillist.html