avhimkov
3/18/2017 - 8:51 AM

Copy Loop

Copy Loop

\\OKNO-1
\\OKNO-2
\\OKNO-3
\\OKNO-4
\\OKNO-5
\\OKNO-6
\\OKNO-7
@echo off
set listfile=host.txt
for /f "tokens=1" %%i in (%listfile%) do call :procedure %%i
:procedure
copy /y "C:\install\hide.vbs" "%1\C$\install\"
copy /y "C:\install\Disable_Offic_protView.bat" "%1\C$\install\"
exit /b
@echo off
set listfile=host.txt
for /f "tokens=1" %%i in (%listfile%) do call :procedure %%i
:procedure
copy /y "C:\install\hide.vbs" "%1\System$\install\"
exit /b