gpt4 book ai didi

vb.net - 在 vb.net 中运行批处理文件?

转载 作者:行者123 更新时间:2023-12-03 16:52:04 25 4
gpt4 key购买 nike

如何从 vb.net 中运行批处理?

最佳答案

您可以使用 Process 类来运行批处理文件

Dim psi As New ProcessStartInfo("Path TO Batch File")
psi.RedirectStandardError = True
psi.RedirectStandardOutput = True
psi.CreateNoWindow = False
psi.WindowStyle = ProcessWindowStyle.Hidden
psi.UseShellExecute = False

Dim process As Process = Process.Start(psi)

关于vb.net - 在 vb.net 中运行批处理文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2178872/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com