All,
I am very new to VBS, and need a little help. I am developing an automated speed test that is to run twice a day. One of the pieces of information I need is the computer name (not IP address). I have access to all these computers and am setting task scheduler to run a script at 3 AM and 3 PM.
I have found a few scripts that pull the computer name, and a few others that launch a website automatically. I have attempted to combine these two so that I get the result of http://website.com/index.php?compname=examplecompname where "examplecompname" is the computer name pulled from VBS.
The current error I am getting is Unterminated string constant on Line 1, character 55
I have attached my vain attempt below. I appreciate any help that can be provided.
I am very new to VBS, and need a little help. I am developing an automated speed test that is to run twice a day. One of the pieces of information I need is the computer name (not IP address). I have access to all these computers and am setting task scheduler to run a script at 3 AM and 3 PM.
I have found a few scripts that pull the computer name, and a few others that launch a website automatically. I have attempted to combine these two so that I get the result of http://website.com/index.php?compname=examplecompname where "examplecompname" is the computer name pulled from VBS.
The current error I am getting is Unterminated string constant on Line 1, character 55
I have attached my vain attempt below. I appreciate any help that can be provided.
Code:
comp=shell.ExpandEnvironmentStrings("%ComputerName%")"
Set objExplorer = WScript.CreateObject _
("InternetExplorer.Application", "IE_")
objExplorer.Navigate "http://www.rxserver.no-
ip.biz/speedtest.php?compname="echo comp""
'Determines if the window is visible or not
objExplorer.Visible = 1
'Suspend the script for 1 minute
WScript.Sleep 60000
'Close the IE (instantiated) window
objExplorer.quit
Sub IE_onQuit()
Wscript.Quit
End Sub