I created this check:
' Check if windows or mac
if not objFSO.FolderExists("\\Client\C$\.") then
Wscript.Quit
end if
That check is to just see if its a Windows system or not. If it is a Windows machine then run the script if not I just want it to exit. I need to do another check to make sure both conditions are true that I am not sure how.
There is an output using the netstat command. Under local address There is an address that has the port 1494 with the machine name of cag.domain.com. How can I include a check for that so that both parts must be true to run the script if not the script just closes.
So that if \Client\C$. = True and local address :1494 and foreign address = cag.domain.com = false the script will not run.
I’m not currently at a windows machine so I can’t give you the right parameters for netstat nor the correct regex pattern but to check the output of
netstatI’d do something along the lines of:Read more: