Hello all. I have a batch file that I want to call based on criteria in a stored procedure. How do I within an IF statement switch to the command shell and run command shell lines? Also is there a way to pass into one of the command shell lines a variable? I have a program that auto emails through command shell and within double quotes I have a message. I need to pass in a variable into that message here is the command shell line for example:
postie.exe -mx -host:%DNS_SRV% -to:test@bubble.net -from:%computername%@bubble.com -s:"Confirmed Orders File Issue" -msg:"Confirmed Order Issue Order Number [THIS IS WHERE I WANT TO PASS IN A VARIABLE FOR ORDER NUMBER]."
postie.exe -mx -host:%DNS_SRV% -to:test@bubble.net -from:%computername%@bubble.com -s:"Confirmed Orders File Issue" -msg:"Confirmed Order Issue Order Number [THIS IS WHERE I WANT TO PASS IN A VARIABLE FOR ORDER NUMBER]."