Jump to content

ErrorStdOut to file


Recommended Posts

I'm using the /ErrorStdOut parameter when running my script, so the user doesn't see ugly error messages. But I do want to log them to a file. How might I accomplish this?

Thanks,

aisc

Link to comment
Share on other sites

You might run your script this way: YourScript.exe >> C:\Temp\Logs\YourScript.log

:blink:

Nice! ;)

This looks like it does the trick from command line:

MyScript /ErrorStdOut >> log.txt

But it won't take that syntax, if I try to make a Windows shortcut like that. I tried to make a batch file with that text instead, but the command window hangs out until the script finishes. My script may run for hours. Any other suggestions to make a shortcut that does this?

Thanks,

aisc

Edited by aisc
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...