Page 1 of 1

.bat (Batch) files no longer run in events under execute

Posted: 24 Oct 2021, 18:21
by ctsdtm2
easy enough to switch it to a command line. But if switching from Backup11 - it is a change to be aware of.

Re: .bat (Batch) files no longer run in events under execute

Posted: 24 Oct 2021, 19:37
by cobian
Thank you. Haven't think about this.

Re: .bat (Batch) files no longer run in events under execute

Posted: 13 Jul 2022, 15:18
by sol4rinn
Hello. Is there any information on this issue? I can't launch bat in any way. Tried to run C:\Windows\System32\schtasks.exe with parameters, tried to run C:\Windows\System32\robocopy.exe with parameters - no effect. I need to copy files from a network folder with the rights of a certain user.

Re: .bat (Batch) files no longer run in events under execute

Posted: 13 Jul 2022, 15:24
by cobian
Hmm.. works fine here. What's exactly the issue?

Re: .bat (Batch) files no longer run in events under execute

Posted: 13 Jul 2022, 16:39
by sol4rinn
ROBOCOPY.EXE \\xxxxx\xxxxxxx\xxxx \\srvxxx01\Backup\xxx\ /E /DCOPY:DAT /A-:H /MAXAGE:3 /R:1 /ETA /UNILOG:D:\cmd\logs\log.robocopy /MT:10

Here is such a line in my bat file. I do the task with expectation and nothing happens. The application logs say that the task was completed without errors, but no copying occurs ...
The service is running under the correct network user.

Re: .bat (Batch) files no longer run in events under execute

Posted: 13 Jul 2022, 16:51
by cobian
If the ROBOCOPY.exe file is not in your's OS path, then it won't be found. Use full paths in your batch file (in quotes "") so it can be found.

The batch is being executed so there are no errors. The "errors" are at batch level I guess.