Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying files

Status
Not open for further replies.

Shanno

MIS
May 1, 2000
1
CA
Do any of you know how I could set up the following easily:<br><br>Copy a file (x:\reports\filesinuse.txt) from 14 remote server x: drives every hour to subdirectories (one subdirectory for each site) <br>on t:\gclark\cendec.<br>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.<br>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.<br><br>Any ideas?<br>Thanks.<br>
 
It would be possible if you use a proggramming language such as c.&nbsp;&nbsp;It is also feasible in Java, or maybe Visual Basic.&nbsp;&nbsp;That specifically I have done something similar in past programs for my classes.&nbsp;&nbsp;i can send you code that would give you and idea on how to do this, just give me an email :) <p>moses<br><a href=mailto:tmoses@iname.com>tmoses@iname.com</a><br><a href= my site</a><br> "We've heard that a million monkeys at a million keyboards could produce the<br>
Complete Works of Shakespeare; now, thanks to the Internet, we know this is<br>
not true." <br>
--Robert Wilensky, University of California <br>
<br>
<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top