VBMAN.Cmd - 命令行操作对象
概述
VBMAN.Cmd 提供命令行操作功能。
注意
该类目前尚未实现具体功能,仅作为占位符保留。如需执行命令行操作,请使用 VB6 内置的 Shell 函数或 WScript.Shell 对象。
替代方案
vb
' 使用 Shell 函数
Dim result As Double
result = Shell("notepad.exe", vbNormalFocus)
' 使用 WScript.Shell
Dim ws As Object
Set ws = CreateObject("WScript.Shell")
ws.Run "cmd /c dir", 0, True