My bat file has the following code in it.
Code: Select all
@ECHO OFF
ECHO This text goes to Standard Output
ECHO This text goes to Standard Error 1>&2
ECHO This text goes to the Console>CON
c:\test\test.bat > c:\test\testlog.txt 2> c:\test\testerrors.txt
... and the third line goes to the console, the second line is written to the file called c:\test\testerrors.txt and the first line is written to c:\test\testlog.txt
When I try to run this from Macro Scheduler, my code is...
Code: Select all
RunProgram>cmd /c c:\test\test.bat > c:\test\testlog.txt >2 c:\test\testerrors.txt
I have tried various combinations of RP_ADMIN, turning off 64bit redirection, etc. but I cannot get things to work. I was able to run batch files in my prior version 13 install of Macro Scheduler so this is puzzling.
I would appreciate any and all suggestions on what next to try.