SMSUG.ca

...your virtual communITy
Welcome to SMSUG.ca Sign in | Join | Help
in Search

Garth Jones

Testing for exist codes with SMSI

Here is sample code on how to test for an exist code using SMS Installed.

 

item: Execute Program

  Pathname=%win%\notepad.exe

  Default Directory=%win%\

  Flags=00000010

end

item: If/While Statement

  Variable=PROCEXITCODE

  Value=0

end

item: Display Message

  Title English=Exit Code

  Text English=Notepad exited with a code of 0

  Flags=00100100

end

item: Else Statement

end

item: Display Message

  Title English=Exit Code

  Text English=Notepad exited with a code of 1

  Flags=00110000

end

item: End Block

end

 

Digg This

Comments

 

Twitter Trackbacks for Testing for exist codes with SMSI - Garth Jones [smsug.ca] on Topsy.com said:

Pingback from  Twitter Trackbacks for                 Testing for exist codes with SMSI - Garth Jones         [smsug.ca]        on Topsy.com

December 28, 2009 9:52 AM

This Blog

Syndication

News

Training

Powered by Community Server (Non-Commercial Edition), by Telligent Systems