@echo off REM Ensure there's no rsync already running tasklist /FI "IMAGENAME eq rsync.exe" 2>NUL | find /I /N "rsync.exe">NUL if "%ERRORLEVEL%"=="0" exit 255 tasklist /FI "IMAGENAME eq vshadow.exe" 2>NUL | find /I /N "vshadow.exe">NUL if "%ERRORLEVEL%"=="0" exit 255 cd \backuppc cscript pre-cmd.vbs > NULL rsync.exe %* echo '1' > wake.up