everyone. I am brand new to VBscript and I need to write a script that opens whatever website based on its IP address. The following is what I have right now and it works well but I'd rather not hardcode each individual website I need to be opened.
Option Explicit
Dim URL,WshShell,i
URL = "www.sightline.com"
Set WshShell = CreateObject("WScript.shell")
For i = 0 to 50
WshShell.SendKeys(chr(175))
Next
WshShell.run "CMD /C start iexplore.exe " & URL & "",0,False
I would like to replace the 3rd line: 'URL = "..."' to take in an IP address instead without it being hardcoded.
Thanks,
p.s This is my first post so if anyone has any suggestions or tips on how I write my questions better if they need to be, that'd be greatly appreciated.