Vb.net 程序冻结运行批处理文件

Vb.net 程序冻结运行批处理文件,vb.net,Vb.net,我在程序中调用了一个批处理文件。当调用批处理文件时,程序似乎一直冻结,直到完成 我的过程: Dim getUpdate As Process getUpdate.StartInfo.FileName = "C:\UTIL\GETBTCH.BAT" getUpdate.StartInfo.WindowStyle = ProcessWindowStyle.Hidden getUpdate.StartInfo.UseShellExecute = True getUpdate.StartInfo.Wor

我在程序中调用了一个批处理文件。当调用批处理文件时,程序似乎一直冻结,直到完成

我的过程:

Dim getUpdate As Process
getUpdate.StartInfo.FileName = "C:\UTIL\GETBTCH.BAT"
getUpdate.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
getUpdate.StartInfo.UseShellExecute = True
getUpdate.StartInfo.WorkingDirectory = "C:\UTIL\"
getUpdate.Start()

我正在寻找一种方法,如果可能的话,调用批处理文件,最好是隐藏它,但它将在外部运行,因此,可能不会影响程序冻结或暂停。

可能会创建一个新项目进行批处理更新,然后用Process.start()调用它


或者,您可以查看

,也可以在此处继续阅读: