[vba]shell执行exe或者bat没有反应
// 问题所在,没有切换路径ChDir ThisWorkbook.Path// 同步调用Dim oShell As Object, ret As StringSet oShell = CreateObject("WSCript.shell")ret = oShell.Run("test.exe " & " test.ini", 0, True)'ret = oShell.Run(ThisWorkbook.Path & "\test.bat" & " test.ini .
原创
2022-02-10 00:10:01 ·
1539 阅读 ·
2 评论