Hi All

i have sequenced an application using 4.6sp1 of the microsoft virtualisation app v sequencer, i have a program where when you close it it leaves a process in the system tray and a box also stays in the system tray, when you right click on this box and close it yourself it then goes to 0%

is there a way to kill this process off as well? otherwise when users click close, they will assume its closed and it hasn't really, its still in the system tray



0 Comments   [ - ] Hide Comments


Please log in to comment

Answer this question or Comment on this question for clarity



write this in after Post shutdown script :

taskkill /f "application exe name"

e.g. taskkill /f notepad.exe

or you can also run vbs

just change name from notepad.exe to your one.


On error Resume next
Set WshShell = WScript.CreateObject("WScript.Shell")
Set oWmi = GetObject("winmgmts:")
'Get the process
sWmiq = "select * from Win32_Process where name='notepad.exe'"
Set oQResult = oWmi.Execquery(sWmiq)
'Kill all Processes
For Each oProcess In oQResult
iRet = oProcess.Terminate(1)


Answered 09/25/2012 by: rock_star
Second Degree Black Belt

Please log in to comment

thanks will definitely give this a go!

Answered 09/26/2012 by: keane2012
Brown Belt

Please log in to comment

have you tried setting the TERMINATECHILDREN property to TRUE in the OSD?

Answered 09/27/2012 by: pjgeutjens
Red Belt

Please log in to comment