Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

returning custom error strings

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

3 comments
Date Votes
  • 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.

    0
  • Hey Adam, Thanks for the quick response , At the moment I plan something simple, one script that will copy multiple files to my server, I would like to output not only the amount of files that were copied (in case of an error and also in case that everything worked) but also to specify the exact module that I used when running the script - so I will have records of what was uploaded to my prod environment I also intend to use an output file and send them all at the end of the script to a shared location - but I would also prefer to have one short summery line for my script...
    0
  • 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

    0