Code: Select all
@echo off
%~d0
cd %~d0%~p0%
md %~dp0C
md %~dp0D
md %~dp0F
md %~dp0G
rem excludes
set ex1= "$RECYCLE.BIN"
set ex2= "Documents and Settings"
set ex3= "MSOCache"
set ex4= "PerfLogs"
set ex5= "Program Files"
set ex6= "Program Files (x86)"
set ex7= "Qoobox"
set ex8= "Recovery"
set ex9= "System Volume Information"
set ex10= "Windows"
set ex11= "All Users"
set ex12= "Default"
set ex13= "Default User"
set ex14= "Public"
set ex15=
set ex16=
set ex17=
set ex18=
set ex19=
set ex20=
set ex22=
set ex23= .sys
set ex24= Thumbs.db
set ex25= *.ini
set ex26= *.tmp
set ex27= *.ost
set ex28= "C:\hiberfil.sys"
set ex29= "C:\pagefile.sys"
set ex30= "C:\winpepge.sys"
set czas=%date:~0,90% %time:~0,8%
echo Rozpoczeto kopie zapasową %czas% >> %~dp0Info.txt
echo. >> %~dp0Info.txt
set czas=%date:~0,90% %time:~0,8%
echo %czas% Trwa kopiowanie danych: Dysk C >> %~dp0Info.txt
robocopy.exe C:\ %~dp0C /LOG+:%~dp0LogC.txt /B /ZB /COPY:DT /TIMFIX /R:10 /W:30 /MIR /V /NP /IS /IT /XJ /XD %ex1% %ex2% %ex3% %ex4% %ex5% %ex6% %ex7% %ex8% %ex9% %ex10% %ex11% %ex12% %ex13% %ex14% /XF %ex23% %ex24% %ex25% %ex26% %ex27% %ex28% %ex29% %ex30%
attrib -s -h %~dp0C
Every time when I do copy by robocopy, it hide a main folder, even I select copy only Data and Time witout security, owner etc. Then Im ust use attrib -s -h, how set a parametrs of robocopy to repair this.