私はvbsを機能させようとしています。アイデアは、txtファイルに含まれているマシンのリストにmsiをリモートでインストールすることです。
複数のエラーが発生します。最初のエラーは次のとおりです。
引数の数が間違っているか、プロパティの割り当てが無効です: "WshShell.Exec"行27、文字1
WshShell.Exec "%COMSPEC% /C COPY " & StrInstallFile & " \\" & strComputer _
& "\C$\Windows\Temp", 0, TRUE
私はこれを次のように回避したようです:
Set WshExec = WshShell.Exec......
その後、得た:
ステートメント行の予想される終了27cahr29
を追加する&
:
Set WshExec = WshShell.Exec & "%COMSPEC%.....
今私を取得します:
ステートメント行27文字110の予想される終わり
最後から2番目のコンマです
Set WshExec = WshShell.Exec & "%COMSPEC% /C COPY" & StrInstallFile _
& " \\" & strComputer & "\C$\Windows\Temp", 0, TRUE
ですから、この時点で何が悪いのか、そして行全体をセットに変更することが正しいことであったかどうかはわかりません。