Foxtable(狐表)用户栏目专家坐堂 → VB.NET如何转狐表?


  共有1133人关注过本帖平板打印复制链接

主题:VB.NET如何转狐表?

帅哥哟,离线,有人找我吗?
lin98
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:五尾狐 帖子:1141 积分:7526 威望:0 精华:0 注册:2020/11/4 22:15:00
  发帖心情 Post By:2024/3/9 15:54:00 [只看该作者]

 Public Shared Sub RunCMD(ByVal workingDirectory As String, ByVal command As String)
            Dim p As Process = New Process()
            p.StartInfo.FileName = "cmd.exe"
            p.StartInfo.WorkingDirectory = workingDirectory
            p.StartInfo.UseShellExecute = False
            p.StartInfo.RedirectStandardInput = True
            p.StartInfo.RedirectStandardOutput = True
            p.StartInfo.RedirectStandardError = True
            p.StartInfo.CreateNoWindow = True
            p.Start()
            p.StandardInput.WriteLine(command)
            p.StandardInput.WriteLine("exit")
        End Sub

       

 回到顶部
总数 23 1 2 3 下一页