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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Robocopy complications

Status
Not open for further replies.

mholbert

IS-IT--Management
Jan 10, 2006
105
US
I hope this is the correct forum for this question.

I have some files that I need to both copy, and move.

Files will be downloaded from a digital dictation device to Folder A. I need to copy them to Folder B for backup, and then move them to Folder C so a seperate utility can move them, convert them, upload them etc.

When I am done, I need the files to be in folder B and C, but not in A.

I am using robocopy as follows in the order shown

1. copy from A to B
2. move from A to C

my problem is I need this to occur whenever files are downloaded into A. I have two robocopy commands setup. The first one copies, the second one moves. I have been trying to use the /MOT:5 to tell it to start over when 5 minutes have elapsed, and at least one change in Folder A has occured. I have tried putting the /MOT:5 at the end of the first command (the copy), but then the second command (the move) never runs. Likewise, I have tried putting the /MOT:5 at the end of the second command (the move) but then it just repeats the second command over and over again.

How do I get it to repeat 1,2...1,2...1,2...1,2??

Any help is greatly appreciated. MH
 
Remove the /MOT:5 from both commands. Setup a batch file to do the copy and then the move. Schedule the batch file to run every 5 minutes.

Denny
MCSA (2003) / MCDBA (SQL 2000) / MCTS (SQL 2005) / MCITP Database Administrator (SQL 2005)

--Anything is possible. All it takes is a little research. (Me)
[noevil]
 
duh. I was looking at the scheduled task setting of 'on system startup' where the advanced button is greyed out. If I change it to Daily, it appears and I can choose every ? minutes.

You can star someone for great advice. You should be able to dunce someone for a stupid question.

Thanks. MH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top