This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim userinput | |
userinput = inputbox("Type something to make your computer speak") | |
set sapi = wscript.createobject("SAPI.Spvoice") | |
Sapi.speak userinput |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dim NIC1, Nic, StrIP, CompName | |
Set NIC1 = GetObject("winmgmts:").InstancesOf("Win32_NetworkAdapterConfiguration") | |
For Each Nic in NIC1 | |
if Nic.IPEnabled then | |
StrIP = Nic.IPAddress(0) | |
Set WshNetwork = WScript.CreateObject("WScript.Network") |