MS SDK stop console output

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
MarcinW
Junior Coder
Posts: 23
Joined: Thu Jul 23, 2020 11:24 pm

MS SDK stop console output

Post by MarcinW » Thu Mar 11, 2021 5:25 pm

Hi,

When using MS SDK with C# I am getting messages written to console like this for each RunCode:

11/03/2021 17:12:20:830 - Started Macro
11/03/2021 17:12:20:847 - Finished Macro

If running a lot of macros it can affect performance and it also makes debugging more difficult.
Is there a way to switch off these console logs?

Thanks

User avatar
Marcus Tettmar
Site Admin
Posts: 7378
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: MS SDK stop console output

Post by Marcus Tettmar » Thu Mar 11, 2021 6:34 pm

Try passing this in 'parms' to RunCode or RunScript:

Code: Select all

 /LOGFILE=\dev\nul
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

MarcinW
Junior Coder
Posts: 23
Joined: Thu Jul 23, 2020 11:24 pm

Re: MS SDK stop console output

Post by MarcinW » Thu Mar 11, 2021 11:40 pm

This works, thanks. :)

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts