📜  vba 保持命令窗口打开 - VBA 代码示例

📅  最后修改于: 2022-03-11 14:51:57.708000             🧑  作者: Mango

代码示例1
Sub cmdWinOpen()
    Dim res
    Dim shell As Object
    Set shell = VBA.CreateObject("WScript.Shell")
    res = shell.Run("cmd /k " & "your command")
End Sub