Code: Select all
@echo off
%~d0
cd %~d0%~p0%
AT 01:00 /EVERY:pn,wt,sr,cz,pt,so,n %~dp0BACKUP.bat
It works but I must do protection for this. I want to if backup can't start in this time, because for example computer was off. Then Backup.bat start with nearest run system.
Second what I need is autorun.bat autostarting every time when backup disk will input to usb. AUTORUN.bat is in this disk (example directory B:\Autorun.bat)