06-09-21 05:02 AM
Answered! Go to Answer.
06-09-21 05:18 AM
06-09-21 05:18 AM
07-09-21 01:59 AM
Hi,
The "Kill Process" included in the "Utility - Environment" VBO is not able to completely kill the process.
https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.process.kill?view=netframework-4.8
So I created an object to completely kill using code stage.
Input: ProcessName(text)
Output: nothing
Dim p As New System.Diagnostics.Process()
p.StartInfo.FileName = System.Environment.GetEnvironmentVariable("ComSpec")
p.StartInfo.Arguments = "/c taskkill /F /T /FI ""username eq %USERNAME%"" /IM " & ProcessName
p.StartInfo.UseShellExecute = false
p.StartInfo.CreateNoWindow = true
p.Start()
p.WaitForExit()
p.Close()
You can kill Excel processes completely by giving "EXCEL.EXE" as the input argument "ProcessName".
07-09-21 05:49 AM
11-09-21 05:26 AM