Jump to content
Sign in to follow this  
aisc

ErrorStdOut to file

Recommended Posts

aisc

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

Share this post


Link to post
Share on other sites
PsaltyDS

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

:blink:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites
aisc

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

Share this post


Link to post
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
Sign in to follow this  

×