Help me fix my Robocpy script for Win7
Hi everyone! I need some help configuring our robocopy script for Windows 7. It has been working flawless in the past for XP. The script for XP is looking like this: @echo off set pc=%computername% set home=%homedrive% set user=%username% md \\%pc%\c$\RoboCopy md %homedrive%\RoboCopy set robologg=\\%pc%\c$\RoboCopy cls rem rem rem echo ****************************************************** echo * * echo ** Backup Data from %pc% to %home% Running ** echo * * echo ****************************************************** %logonserver%\netlogon\ROBOCOPY "\\%pc%\c$\Documents and Settings\%user%\My Documents" "%home%\RoboCopy\My Documents" /XF file *.mp3 /XF file *.m4a /MIR /TEE /LOG:%home%\RoboCopy\senaste.txt %logonserver%\netlogon\ROBOCOPY "\\%pc%\c$\Documents and Settings\%user%\Favorites" "%home%\RoboCopy\Favorites" /MIR /TEE /LOG+:%home%\RoboCopy\senaste.txt %logonserver%\netlogon\ROBOCOPY "\\%pc%\c$\Documents and Settings\%user%\Desktop" "%home%\RoboCopy\Desktop" /XF file *.mp3 /XF file *.m4a /MIR /TEE /LOG+:%home%\RoboCopy\senaste.txt notepad %home%\RoboCopy\senaste.txt Could a generous person help me "convert" this so that it will work for Windows 7?... As I am both too lazy and stupid to do this on my own.. ;) BR Johan
January 7th, 2011 4:20am

Change "Documents and Settings" to 'Users"
Free Windows Admin Tool Kit Click here and download it now
January 7th, 2011 10:36am

Change "Documents and Settings" to 'Users" Doesn't work. It gives me an "access denied" error.
January 7th, 2011 10:38am

%username% not %user% ?
Free Windows Admin Tool Kit Click here and download it now
January 7th, 2011 5:46pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics