0

シナリオ: データベースから複数のレポートを生成するには、次のようにコマンド プロンプトでバッチ ファイルを実行します。

C:\program files> cmdbatchtest1.bat servername date Y Y

VBScript を使用して、同様のことを試みました。

set shell=createobject("wscript.shell")
shell.Run "test1.bat.bat", 1, True '''''able to execute batch file alone
shell.Run "cmd /K "& com_e & """\tp.bat""" & "&&" & c & "&&" & d, 1, True '''' unable to execute

これを機能させるのを手伝ってください。
前もって感謝します。

4

1 に答える 1