So, this is kind of an odd one. I've done some googling, some thinking, and some testing and just kind of hitting dead end after dead end.
I'm trying to update my company's signatures on everyone's outlook, using some fancy vbscript that our scripting guy wrote.
Well it needs to be run while Outlook isn't running, otherwise it bombs, since it can't update the files associated and other shenanigans.
So I'm setting the file up in a batch file, and trying to figure out a way to give errorlevel's for a vbscript. I spelunked through the understanding batch files tutorial and dug into that a little and ended up with this:
Set ResultCode =%ERRORLEVEL%
IF "%ResultCode%"=="0" ( sdclient.exe /msg="Signature Updated Successfully"
) ELSE ( sdclient.exe /msg="Signature Failed Update with code %ResultCode%. Exiting" )
EXIT /B %ResultCode%
The problem that I'm having is that no matter if it is actually successful in updating the signature, or not, it is returning as a failure to the Core. I feel like I'm missing something rather obvious, but can't seem to figure out what it is.
Anybody happen to have any experience in this? Or any suggestions?
Thanks for any help.