打印本文 打印本文 关闭窗口 关闭窗口
如何截获执行
作者:武汉SEO闵涛  文章来源:敏韬网  点击数1890  更新时间:2009/4/23 16:39:29  文章录入:mintao  责任编辑:mintao
sBuffer, lBytesRead)
                       Loop
                       CloseHandle Proc.hProcess
                       CloseHandle Proc.hThread
                       CloseHandle hReadPipe
                    Else
                      ExecuteCommandLineOutput = "File or command not found"
                   End If
                 Else
                   ExecuteCommandLineOutput = "CreatePipe failed. Error: " & Err.LastDllError & "."
                 End If
             End If
      End Function
      Private Sub Command1_Click() ''''测试
             ''''VBA.MsgBox ExecuteCommandLineOutput("ping www.sina.com.cn")
             VBA.MsgBox ExecuteCommandLineOutput("ping www.xxxx.com.cn", , 2)
      End Sub

上一页  [1] [2] 

打印本文 打印本文 关闭窗口 关闭窗口