returning custom error strings
Roei Engel
Hi,
Is there any way that I cans send back to the PDQ custom errors?
I know how I can send exit codes (very easily), but can I send some error sting as well?
I mainly use VBS and BAT, but I assume I'll need a solution for any lang I'll use
thanks
Roei
0
Comments
Not currently, we discard any output (other that return code) but this is something that's on our high priority roadmap to add. Our plans are to provide the output for troubleshooting purposes. How were you planning on using it? There may be some way we can use or process the output that would help out your process.
Till such feature is available, you can redirect the output of your batch files by using >>\\server\logs\%COMPUTERNAME%_logfile.xtx on every important line.
For some morei nfo about redirects read http://blog.crankybit.com/redirecting-output-to-a-file-in-windows-batch-scripts/ or google