@echo off set write= set skippack=skippack set CDR=r set NEROPATH="C:\Program Files\Ahead\Nero\nerocmd.exe" set LAST=-1 if not -%3-==-- goto poehali echo. echo. echo. echo. echo This file is not fo starting. echo Run file NERO.BAT instead. echo. echo. echo. echo. pause exit oehali echo. >> autorun.log echo %1 %2 %3 >> autorun.log echo. echo %1 %2 %3 set skip= FOR /F %%s IN (%skippack%) DO if -%%s-==-%2- set skip=1 if not exist %1\1Cv7.LCK goto pack echo 1C locked >> autorun.log echo 1C locked type %1\SYSLOG\links.tmp > %CD%\links.tmp FOR /F "delims={,} tokens=1,2*" %%s IN (%CD%\links.tmp) DO cmd /c print.cmd Begin %%s %%t Done. if exist %CD%\links.tmp del /f /q %CD%\links.tmp if exist neroerr.txt del /f /q neroerr.txt exit ack if -%skip%-==-1- goto skip echo Pack %1 start echo Pack %1 start >> autorun.log rar a -mdg -m5 -r -av -s -k -tl -x*.cdx -x*.cmd -x*.bat -x*.exe -x*.zip -x*.rar -x*.log -x*.flv %2-%3.rar %1 echo Pack %1 done. echo Pack %1 done. >> autorun.log if not -%write%-==-- goto write exit SET IMP=--import : %LAST% :write %NEROPATH% --drivename %CDR% --cdinfo > %temp%\nero echo. type %temp%\nero echo. FOR /F "eol=; skip=3 tokens=2,6,7*" %%s IN (%temp%\nero) DO if -%%s-==-data- set last=%%t del %temp%\nero > nul echo %CDR%: %LAST% echo %CDR%: %LAST% >> autorun.log Echo %LAST% %IMP% %CDR% %NEROPATH% Echo %LAST% %IMP% %CDR% %NEROPATH% >> autorun.log Echo %NEROPATH% --write --drivename %CDR% --real --iso test --underrun_prot --tao %IMP% --close_session %3.rar Echo %NEROPATH% --write --drivename %CDR% --real --iso test --underrun_prot --tao %IMP% --close_session %3.rar >> autorun.log %NEROPATH% --write --drivename %CDR% --real --iso test --underrun_prot --tao %IMP% --close_session %3.rar %NEROPATH% --drivename %CDR% --load if exist neroerr.txt del /f /q neroerr.txt rem move %3.rar %1\ > nul echo. >> autorun.log exit :skip echo Pack %1 skip echo Pack %1 skip >> autorun.log exit |