@echo on SetLocal EnableExtensions :: Обозначение переменных Set $OLD=6 set dir1=%curdrive%\backup\perco set Num=7 set create_time=%TIME:~0,-3% set create_time=%create_time::=.% set create_time=%create_time: =0% set full_path=%dir1%\%date:~6,4%.%date:~3,2%.%date:~0,2% Set log=%full_path%\logfile.txt :: Создание директории с текущей датой (если папка с архивом создана, завершение работы) ::IF EXIST %full_path% (goto:exit) md %full_path% cd %full_path% "C:\Program Files\Firebird\Firebird_2_5\bin\gbak" -B -USER *SYSDBA* -PAS *masterkey* C:\SCD17k.FDB %full_path%\%create_time%-SCD17k.gdb