I need a script that will backup a specific folder in Application Data for multiple user profiles.
We are planning a Dragon Medical upgrade to a new version. As a safe guard, I would like to be able to copy the cache folder located at C:\Documents and Settings\%username%\Application Data\Nuance\NaturallySpeaking10\Cache to C:\Dragon Cache Backup. The Dragon Cache Backup will need to be created as well. Please let me know if more information is needed. Thank you in advance for your time.
this link may give you an idea
Here is what I have come up with so far after browsing Google.
REM Going through all the local profiles and performing the backup
set ProfileFolder=%ALLUSERSPROFILE:\All Users=%
for /f "delims=" %%a in ('dir "%ProfileFolder%\." /b') do (
xcopy "%ProfileFolder%\%%a\Application Data\Nuance\NaturallySpeaking10\Cache\*.*" "C:\Dragon_Cache_Backups\%FOLDER%\%%a\" /e /c /h /k /y >> C:\Dragon_Cache_Backups\Backup.txt
XCopy batch. See this other question: