' Verify the Existence of a Dictionary KeySet objDictionary = CreateObject("Scripting.Dictionary")objDictionary.Add "Printer 1", "Printing" objDictionary.Add "Printer 2", "Offline"objDictionary.Add "Printer 3", "Printing"If objDictionary.Exists("Printer 4") Then Wscript.Echo "Printer 4 is in the Dictionary."Else Wscript.Echo "Printer 4 is not in the Dictionary."End If search for scripts
' Verify the Existence of a Dictionary KeySet objDictionary = CreateObject("Scripting.Dictionary")objDictionary.Add "Printer 1", "Printing" objDictionary.Add "Printer 2", "Offline"objDictionary.Add "Printer 3", "Printing"If objDictionary.Exists("Printer 4") Then Wscript.Echo "Printer 4 is in the Dictionary."Else Wscript.Echo "Printer 4 is not in the Dictionary."End If
Download Home Scripts Copyright © 2001-2025 adersοft