** UIPath Version 22.214.171.124
I want to add a function to check whether there are any running java applications containing special keyword in the command line of the process.
This could be done by this VB.net code:
Dim isRunning As Boolean = False
Dim searcher As ManagementObjectSearcher = New ManagementObjectSearcher(“SELECT * FROM Win32_Process WHERE Name=‘java.exe’ OR Name=‘javaw.exe’”)
For Each process As ManagementObject In searcher.Get()
Dim cmdlparam As String = process(“CommandLine”)
If cmdlparam.ToLower.Contains(“function.exe”) Or cmdlparam.ToLower.Contains(“service.jar”) Then
isRunning = True
To run this I need to import Microsoft “System.Management” package.
But after installing the package (V4.5.0) UIPath shows error “package installation failure”.
The Activity “Get Processes” does not help, as I can not get the commandline parameters of the running processes.
Does anyone have an idea ?