Continue on error?

(imported topic written by rmnetops91)

I have an action script that runs the following:

runhidden taskkill /f /im BESClientUI.exe

I want it to continue processing the rest of the action script if this command fails. How can I do this?

(imported comment written by SystemAdmin)

What would cause that line to fail? Action script does not do anything with with exit codes from programs, so it doesn’t care about the result of the command. If you are running this on Windows 2000 clients, “taskkill.exe” is not loaded by default as it is part of the “Support Tools.” In that case, you could always do this:

if {exists file (pathname of system folder & "\taskkill.exe")}
 
runhidden taskkill /f /im BESClientUI.exe
 
endif

Another thing to consider is to actually download taskkill.exe onto the Windows 2000 boxes if it does not already exist.

(imported comment written by rmnetops91)

That was the issue.

Thanks!