@echo off
set MY_SRC_ROOT=\\\\office-server\\zcloud
set MY_DST_ROOT=%cd%
set options=/MIR /NDL /NP /DST /FFT /COPY:DT /XD cache* /XF desktop.ini /XF thumb*.db /E /R:0
for /F "tokens=1-8 delims=/:. " %%a in ("%date%:%time%") do (
set MY_LOG_FILE="%TEMP%\\%%d-%%b-%%c_%%e-%%f-%%g-%%h.log"
)
set MY_ARGS=/LOG+:%MY_LOG_FILE%
if exist %windir%\\system32\\robocopy.exe (
set MYROBOCOPY=%windir%\\system32\\robocopy.exe
) else (
set MYROBOCOPY=%MY_DST_ROOT%\\dropbox\\misc\\bin\\robocopy.exe
)
set source="%MY_SRC_ROOT%\\dropbox"
set targetd="%MY_DST_ROOT%\\dropbox"
call :DOIT %MY_ARGS%
set source="%MY_SRC_ROOT%\\infreq"
set targetd="%MY_DST_ROOT%\\infreq"
call :DOIT %MY_ARGS%
goto :EOF
:DOIT
%MYROBOCOPY% %source% %targetd% %options% %1 %2 %3 %4 %5
這是USB盤裏的script
所有跟帖:
• ding sharing -internuts- ♂ (0 bytes) () 12/22/2011 postreply 12:56:35