Hello,
I am trying to kill a process, however after exiting that process, taskbar still shows icon. If I move mouse manually over the icon, it goes away. Is there a way to automatically refresh taskbar icons after killing process?
Here is the code that I am using:
local $process = "abc.exe"
If ProcessExists($process) Then
RunAsSet($username, @LogonDomain, $password, 1)
RunWait(@ComSpec & ' /c taskkill /F /T /IM ' & $process, "", @SW_HIDE)
RunAsSet()
EndIf
I have to use RunAsSet to escalate current user permissions to admin level. Please let me know if there is any alternative.
Any inputs is appreciated.
Thank you much,
samkshah