This is a simple script I use at work to transfer a users Documents. This is especially useful on infected systems because it brings over the minimum they need (no settings). It will only work with XP or Win2000. Like a lot of companies, mine has not implemented even one PC with Vista. We will probably try to avoid Vista as long as possible. I like Vista but training users can be daunting.
In it’s current form it will grab the following folders: My Documents, Favorites, Desktop, and Outlook’s PST file (in its default location). Copy the code below into a txt document and save it as whatevername.bat. Feel free to modify it to fit your needs.
*
@echo off
set /p drive=What is the drive letter of the USB stick?
set /p name=What is the users name?
xcopy /E /I /Y /H /F “%userprofile%\Desktop” “%drive%:\%name%\Desktop”
xcopy /E /I /Y /H /F “%userprofile%\Favorites” “%drive%:\%name%\Favorites”
xcopy /E /I /Y /H /F “%userprofile%\My Documents” “%drive%:\%name%\My Documents”
xcopy /E /I /Y /H /F “%userprofile%\Local Settings\Application Data\Microsoft\Outlook” “%drive%:\%name%\Outlook”
*
To run:
login as the user you want to transfer the files from,
insert a USB stick and make note of the drive letter,
double click the whatevername.bat,
answer the 2 prompts and watch the magic.
*with slight modification this can be used on a network drive.
