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

Questions about Cobian Reflector
Post Reply
ctsdtm2
Posts: 16
Joined: 21 Oct 2021, 22:23

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

Post by ctsdtm2 »

easy enough to switch it to a command line. But if switching from Backup11 - it is a change to be aware of.
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

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

Post by cobian »

Thank you. Haven't think about this.
--
Luis Cobian
Cobian Backup's creator
sol4rinn
Posts: 7
Joined: 13 Jul 2022, 15:13

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

Post 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.
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

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

Post by cobian »

Hmm.. works fine here. What's exactly the issue?
--
Luis Cobian
Cobian Backup's creator
sol4rinn
Posts: 7
Joined: 13 Jul 2022, 15:13

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

Post 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.
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

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

Post 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.
--
Luis Cobian
Cobian Backup's creator
Post Reply