I have this as part of a overall script...
Sub ParseCommandLine()
Dim vArgs
set vArgs = WScript.Arguments
if vArgs.Count <> 2 then
DisplayUsage()
Else
host = vArgs(0)
EventID = vArgs(1)
End if
End Sub
I want to use the host variable in the strcomputer = "." line in my script
(obviously replacing the . with the variable name) I have tried "'&host&'",
&host& and every other combonation... What is the correct syntax to get the
command line variable host (or) vArgs(0) for the strcomputer = line?
Thanks
-david