I just tried to create a couple of scripts that would allow users to send me messages when they need computer help.
Now, I am trying to get more than 2 variables from one script (input.vbs) to another one (output.vbs).
The first one gets the user information, the second one sends it to an email address.
My problem is that I can’t seem to find a way to get more than one variable accross the scripts with several characters.
chrValue = InputBox(“Username:”)
strCommandLine = “output.vbs ” & chrValue
Set objEmail = CreateObject(“CDO.Message”)
chrValue = Wscript.Arguments.Item(0)
(“http://schemas.microsoft.com/cdo/configuration/sendusing”) = 2
(“http://schemas.microsoft.com/cdo/configuration/smtpserver”) = _
(“http://schemas.microsoft.com/cdo/configuration/smtpserverport”) = 25
I got some of the code from the technet ms site, so any help would be greatly appreciated.
You must be logged in to reply to this topic.
Create a free account today to participate in forum conversations, comment on posts and more.