|If you knew how much of a newbie I am to this, you'd cry hard.|
I'll need to research that for and tokens to get an understanding of how it works.
But heres an idea of what I was attempting
Robocopy "C:\Documents and Settings\*\Desktop" "C:\%computername%-test.back\Documents and settings\*\Desktop" /s /COPYALL /ETA /r:1 /w:1 /XF "*.tmp" /XD "C:\Documents and settings\All Users" *temp *"temporary internet files" *cache
Id love to know more about that looping bit.
So then if Im correct Id need 1 execution of Robocopy per folder, desktop, documents, etc...
Also what would the syntax be to omit a folder like Administrator without the absolute path?
I tried \Administrator\, \Administrator, and Administrator\, and none seemed to work. Adminstrator alone worked but then I'm wondering if any user for whatever reason had a sub folder under Documents, that would be omitted too, correct?
Hmm on that note, best to absolute path i guess..
ok I got it somewhat working, heres what Im putting
for /f "tokens=*" %%a in ('dir "c:\documents and settings" /ad /b') do (
robocopy "C:\Documents and Settings\%%a\Favorites" "C:\%computername%-test\Documents and Settings\%%a\pew" /s /COPYALL /ETA /r:1 /w:1 /XF "*.tmp" /XD "C:\Documents and settings\All Users" *temp *"temporary internet files" *cache "All Users"
When i tried using destination, I had problems. Also for the destination, I tried just ....Documents and Settings\%%a\"
and it wouldnt process anything.
I tried Documents and Settings\%%a and it would just copy everything to doc and settings, no user names made.
Then I noticed it seems to ignore the last specified dir, so I put Documents and Settings\%%a\pew" and now everything outputs to Docs n settings\users\favorites
I noticed all the user folders it creates have me as owner, yet the favs inside will be correct with owner...
Im guessing its a side effect of that /pew
ok looks like just the favorites whacks out on me like the, Desktop seems to work fine.
however I guess its a side effect of using the %%a but I cant exclude a folder for the life of me. its username rbrigmon, Ive tried to exclude everything I can think of
C:\Documents and Settings\rbrigmon\
C:\Documents and Settings\rbrigmon\Desktop\
rbrigmon, \rbrigmon\, etc. Always goes through. Same as that all users