-- [求助]发布后软件自动升级功能请教
If Syscmd.Project.Update(False, False) = False Then \'如果没有升级
OpenId = 1
Else
Dim batPath As String = "C:\\restart.bat"
Dim str As String = "@echo off" & vbCrLf
str &= "timeout /t 3 /nobreak" & vbCrLf \' 延迟3秒确保进程释放
str &= "start " & """" & ProjectFile & """" & vbCrLf
str &= "del ""%~f0""" \' 自删除脚本
FileSys.WriteAllText(batPath, str, False, Encoding.Default)
Dim Proc As New Process
Process.Start(batPath)
Application.Exit()
End If
老师,做了个批处理,但升级完成后有个升级成功的提示,批处理没办法执行。怎么处理