aisc Posted July 23, 2010 Share Posted July 23, 2010 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 More sharing options...
PsaltyDS Posted July 23, 2010 Share Posted July 23, 2010 You might run your script this way: YourScript.exe >> C:\Temp\Logs\YourScript.log 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 Link to comment Share on other sites More sharing options...
aisc Posted July 23, 2010 Author Share Posted July 23, 2010 (edited) You might run your script this way: YourScript.exe >> C:\Temp\Logs\YourScript.log 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 July 23, 2010 by aisc Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now