@echo off
rem templatetest3v2.BAT transfers all files in all subdirectories of
rem the source drive or directory (%1) to the destination rem drive or directory (%2)
xcopy "\\gblonvdat001\groups\desktop support\NS&I templates\NewNSANDITemplate\nsandi Templates" "C:\Program Files\Microsoft Office\Templates\nsandi templates" /s /e /y
xcopy "\\gblonvdat001\groups\desktop support\NS&I templates\NewNSANDITemplate\Toolbar add-ins\nsandiToolbars.dot" "C:\Program Files\Microsoft Office\Office12\STARTUP" /s /e /y
xcopy "\\gblonvdat001\groups\desktop support\NS&I templates\NewNSANDITemplate\Default templates\Book1.xlsx" "C:\Program Files\Microsoft Office\Office12\XLSTART" /s /e /y
xcopy "\\gblonvdat001\groups\desktop support\NS&I templates\NewNSANDITemplate\Default templates\Normal.dotm" "C:\Program Files\Microsoft Office\Templates" /s /e /y
xcopy "\\gblonvdat001\groups\desktop support\NS&I templates\NewNSANDITemplate\Default templates\blank.potx" "C:\Program Files\Microsoft Office\Templates" /s /e /y
xcopy "\\gblonvdat001\groups\desktop support\NS&I templates\NewNSANDITemplate\Quick Access Toolbar\PowerPoint.qat" "C:\Documents and Settings\Default User\Application Data\Microsoft\Office" /s /e /y
xcopy "\\gblonvdat001\groups\desktop support\NS&I templates\NewNSANDITemplate\Quick Access Toolbar\Word.qat" "C:\Documents and Settings\Default User\Application Data\Microsoft\Office" /s /e /y
if errorlevel 4 goto lowmemory
if errorlevel 2 goto abort
if errorlevel 0 goto exit
:lowmemory
echo Insufficient memory to copy files or
echo invalid drive or command-line syntax.
goto exit
:abort
echo You pressed CTRL+C to end the copy operation.
goto exit
:exit
it seems to work OK, when i run it on the PC i am using, but what i need to do is run the batch file on about 100 PCs which are on a domain. i don't really want to go to all 100 machines and run the batch file. so was looking for a way to run the batch file on a list of remote PCs.
the last 2 xcopy lines i need to paste the 2 files on all the profile that would be on that PC.
hope that makes sense