diff --git a/06_Copy2Stick.cmd b/06_Copy2Stick.cmd index 4162a44..5a812ce 100644 --- a/06_Copy2Stick.cmd +++ b/06_Copy2Stick.cmd @@ -130,27 +130,29 @@ if EXIST %T%\%IMAGEFILE% ( ) echo copying all files in [ %W10% ] to drive %USBDRIVE% ... -robocopy %W10%\ %USBDRIVE% /MIR /256 /NDL /R:10 /J /XX +robocopy %W10%\ %USBDRIVE% /MIR /256 /NDL /R:0 /J /XX || exit /b :CONT if EXIST tools ( echo. echo copying folder [ tools ] to drive %USBDRIVE% ... - robocopy tools %USBDRIVE%\tools /COPY:DT /FFT /XO /256 /NJH /NJS /NDL /XF .gitignore + robocopy tools %USBDRIVE%\tools /COPY:DT /FFT /XO /256 /NJH /NJS /NDL ^ + /R:0 /XF .gitignore || exit /b ) if EXIST software ( echo. echo copying folder [ software ] to %USBDRIVE%\tools ... - robocopy software %USBDRIVE%\tools\software /COPY:DT /FFT /XO /MIR /256 /NJH /NJS /NDL ^ - /XF *.iso /XF *.txt /XF *.cmd /XF *.csv /XF .gitignore /XD .git + robocopy software %USBDRIVE%\tools\software /COPY:DT /FFT /XO /MIR /256 /NJH /NJS /NDL /R:0 ^ + /XF *.iso /XF *.txt /XF *.cmd /XF *.csv /XF .gitignore /XD .git || exit /b ) for %%P in (drivers scripts source optional personal company apps) do ( if EXIST %%P ( echo. echo copying folder [ %%P ] to %USBDRIVE%\tools ... - robocopy %%P %USBDRIVE%\tools\%%P /COPY:DT /FFT /XO /MIR /256 /NJH /NJS /NDL /XF .gitignore /XD .git + robocopy %%P %USBDRIVE%\tools\%%P /COPY:DT /FFT /XO /MIR /256 /NJH /NJS /NDL ^ + /R:0 /XF .gitignore /XD .git || exit /b ) )