Ветеран
Сообщения: 27449
Благодарности: 8087
|
Профиль
|
Отправить PM
| Цитировать
Как-то так:
читать дальше »
Код:
@echo off
setlocal enableextensions enabledelayedexpansion
set sFolder1=Q:\
set sFolder2=C:\SCAN
set sFolder3=C:\SCAN\BACK
set log_copy=C:\SCAN\BACK\lcopy.log
set log_move=C:\SCAN\BACK\lmove.log
if exist "%sFolder1%\." (
>>"%log_copy%" (
echo -=-=-=- start TRANSFER -=-=-=-=-
echo %date% %time%
echo %log_copy%
copy /y "%sFolder2%\*.txt" "%sFolder1%\"
echo -=-=-=- finish TRANSFER -=-=-=-=-
)
>>"%log_move%" (
echo -=-=-=- start MOVE BACK -=-=-=-=-
echo %date% %time%
echo %log_move%
move "%dir2%\*.txt" "%sFolder3%\"
echo -=-=-=- finish MOVE BACK -=-=-=-=-
)
echo ----------------------
echo TRANSFER CONPLITE
echo ----------------------
) else (
echo ----------------------
echo ERROR NO DISK Q:
echo CONNECT DISK Q:
echo TRANSFER NO CONPLITE
echo ----------------------
)
endlocal
exit /b 0
|
Отправлено: 11:26, 02-07-2014
| #2
|