VBS Code:1
2
3
4
5Set args = WScript.Arguments
If args.Count = 1 Then
test= WScript.Arguments(0)
MsgBox "test " & name
End If
Save this code in test.vbs file.
Command Code:1
wscript.exe test.vbs helloworld
The result will be “test Helloworld”.