如果其他用于运行文件和流文件生成vb.net



如何通过 ifelse

在文本框中首次运行文件septss stream文件
    If Process.Start("test.bat") Then
        Dim address As String = "id.txt"
        Dim client As WebClient = New WebClient()
        Dim reader As StreamReader = New StreamReader(client.OpenRead(address))
        TextBox1.Text = reader.ReadToEnd
    End If

注意:通过批处理文件生成的文本文件。

Try
    Dim proc = Process.Start("test.bat")
    proc.WaitForExit()
    Using client As New WebClient()
        TextBox1.Text = client.DownloadString(File.ReadAllText("id.txt"))
    End Using
Catch
End Try

相关内容

  • 没有找到相关文章

最新更新