I enter the path in the scheduler:

%progdir%\backup\CreateBackup.bat 

I choose * / 2, every 2 minutes.

In the OpenServera log writes:

 03 Mar 13:21:09 Start nnCron 03 Mar 13:21:09 Load cron.tab 03 Mar 13:22:00 Start: f:\openserver\backup\CreateBackup.bat 03 Mar 13:22:18 Start result: 0 03 Mar 13:24:00 Start: f:\openserver\backup\CreateBackup.bat 03 Mar 13:24:02 Start result: 0 03 Mar 13:26:00 Start: f:\openserver\backup\CreateBackup.bat 03 Mar 13:26:00 Start result: 0 03 Mar 13:28:00 Start: f:\openserver\backup\CreateBackup.bat 03 Mar 13:28:00 Start result: 0 

The batnik runs separately and works. But through the scheduler does not want

  • one
    cmd.exe /c %progdir%\backup\CreateBackup.bat ? - Akina
  • I'll try:% COMSPEC% / c% progdir% \ backup \ CreateBackup.bat - Fedor
  • No, the same thing. I'll try to specify% COMSPEC% / c and a batch file command in the path - Fedor
  • If I’m writing with% COMSPEC% / c% realprogdir% \ modules \ database \% mysql_driver% \ bin \ mysqldump.exe -A -a --opt --host =% ip% --user = root>% progdir% \ backup \ dump \% DD% _% MM% _% YYYY% _% hh% _% mm% .sql then everything works, but through the batch file - Fedor
  • Then cmd /k ... - while the window of the command processor is not closed, and you can (need!) See 1) the displayed messages 2) on behalf of which account the console is running. - Akina

0