vb 执行text里的dos命令

比如我要执行text1里的命令,代码该怎么写??...
2026年09月24日 19:20
有4个网友回答
网友(1):

Shell "cmd /c" + Text1.Text

网友(2):

shell text1.text

网友(3):

Dim str1 As String
str1 = "cmd /c " & Text1.Text
Shell str1

网友(4):

Dim str1 As String
str1 = "cmd /k " & Text1.Text
Shell str1