Link to home
Start Free TrialLog in
Avatar of tsaico
tsaicoFlag for Afghanistan

asked on

robocopy experts

I have a terminal server that has an application that we want to export on a regular basis.  A robocopy will work find on it, but the source is by default every user's document folder. I know there is a exclusion, but I do not want to write the source custom for every user that has a profile on the server (about 40 of them), and I also only need two specific folders in their Document folder.  It would also be handy because as people join the team, I do not want to have to also remember to add to this batch.

the folders in question are found in "c:\documents and settings\%username%\folder1" and "folder2".  I tried exclusions, but it wants the entire path to exclude, which is the same problem as the the inclusive batch, meaning I do not want to type out everyone's user names into this script nor modify it when new people join the team.


Any ideas?
Avatar of Luciano Patrão
Luciano Patrão
Flag of Portugal image

Hi

Here you can find robocopy commands and some examples. Also some other tools that can be use to copy/migrate folders/files

http://ss64.com/nt/robocopy.html

Jail
Avatar of rhinoceros
rhinoceros

Good example: Use robocopy to copy the user profiles

More info:
http://ts.veranoest.net/ts_faq_profiles.htm
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tsaico

ASKER

This is good, while it runs under a particular profile, I was hoping to run it under a scheduled task under my own, this will work.  THanks!