Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Copying files

Copying files

Copying files

Do any of you know how I could set up the following easily:

Copy a file (x:\reports\filesinuse.txt) from 14 remote server x: drives every hour to subdirectories (one subdirectory for each site)
on t:\gclark\cendec.
The files will need to be renamed when copied down to something like filesinuse.txt.001...filesinuse.txt.002 etc.....since we do not want any to be overwritten.
I was going to set up an AT command on one of my NT bitlock servers that will run some kind of batch file to do this every hour. I can't seem to find a way to do it in WISE or through a batch file. Copying the file is easy, but how to always rename it in incrementing numbers is what I can't figure out.

Any ideas?

RE: Copying files

It would be possible if you use a proggramming language such as c.  It is also feasible in Java, or maybe Visual Basic.  That specifically I have done something similar in past programs for my classes.  i can send you code that would give you and idea on how to do this, just give me an email :)

my site
"We've heard that a million monkeys at a million keyboards could produce the
Complete Works of Shakespeare; now, thanks to the Internet, we know this is
not true."
--Robert Wilensky, University of California

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close