0
我需要通過一個參數啓動一個vbs script
並與傳入的參數相關,請參閱彈出窗口。Vbscript使用參數啓動vbs並定義多個參數
例子:
Dim Arg, var1, var2
Set Arg = WScript.Arguments
'Parameter1, begin with index0
var1 = Arg(0)
if (instr(WScript.Arguments.Name,"Printer")> 0 then
wscript.echo "Printer type..."
end if
if (instr(WScript.Arguments.Name,"help")> 0 then
wscript.echo "help..."
end if
在此先感謝
'Clear the objects at the end of your script.
set Arg = Nothing