Hello,
I've a batch file that executes properly when i open cmd and paste it in.
but when i create a .bat and put it this command in, it does not execute or pauses after the end. it just closes the window.
any idea how to go about this problem?
if exist c:\1.txt del c:\1.txt
dir /b /s d:\ | find ".pst" >> c:\1.txt
dir /b /s e:\ | find ".pst" >> c:\1.txt
for /f "usebackq delims==" %a in ('c:\1.txt') do xcopy "%a" "\\testscala\g\"%username%"_backup\My Documents\" /y /r /c /e >>\\testscala\g\%username%_backup\backuplog.txt
Configuration: Windows XP
Internet Explorer 6.0