Friday, December 7, 2012


Robo copy to root or find files from your computer and then copy it to shared folder on network.

net use n: \\server\backup
echo %computername%
mkdir n:\%computername%
SET SourceDir= n:\%computername%
SET Log="n:\%computername%.log"
robocopy c:\ %SourceDir% *.doc* *.ppt* *.xls* *.pst* *.pdf /s /LOG:%Log%
The addition of * on either side of the office documents is to ensure that you copy all versions from Office-2k3 and above.  I have also included the PST files.
Hope this was helpfull.



No comments:

Post a Comment