I want to validate if the edge is open and if so I want to retrieve the url of each open tab. At the moment i have this, but i dont have much experience in vbs. What i want its possible with vbs?
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
sQuery = "SELECT * FROM Win32_Process"
Set objItems = objWMIService.ExecQuery(sQuery)
For Each objItem In objItems
if(objItem.Name = "msedge.exe") then
WScript.Echo "Process [Name:" & objItem.Name & "]"
Exit For
end if
Next
Thanks in advance,