Getting a return code from Powershell script?

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Getting a return code from Powershell script?

Post by Jaymer »

Anyone have ideas on how I could get a return code from a Windows Powershell script?

I'm importing SQL Server and a few misc SQL commands via a PS script. Then I want to return to Aware and start a Stored Procedure if all went well.
I was planning on using the schedule to check every X minutes to see if a file was present in a directory, then process it if found.

Optionally, I could just have Powershell (or some native Windows app/scheduler) poll the directory and import and exec the SP and leave Aware totally out of the loop.

thx
jaymer...
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
Post Reply