I have a SilkTest Workbench .Net script that reads commands from an Excel spreadsheet, such as START MY.EXE, OPEN DIALOG XXX, etc. The silk script will execute each of the commands. I added a button to the Excel file to run the script using the command line (wsh.Run "cmd.exe /S /C stw -s myscript", windowStyle, waitOnReturn). I want to be able to determine within the spreadsheet vba code if the silk script was successful or not. I saw some posts on checking %ERRORLEVEL% but I didn't see that env var after running the stw command. Any help is appreciated.
↧