vb.net 等待上个命令执行完成,进行下个命令
DimSitePathAsString="d:\wwwroot\"DimRARPathAsString=".\bin\rar.exe"DimPasswordAsStrin...
Dim SitePath As String = "d:\wwwroot\"
Dim RARPath As String = ".\bin\rar.exe"
Dim Password As String = "p123"
Dim CompressionPath As String = "web"
Dim BackupPath As String = "Backup\20100328.rar"------------------------------------------------------------------------------------------------Shell (".\bin\rar.exe a -hp123 -k -r -s -y d:\wwwroot\Backup\20100328.rar d:\wwwroot\web", vbHide)Dim iResult As Integer = MsgBox ("压缩功能...完成", vbHide) 帮忙添加下等待执行完毕后。提示.------------------------------------------------------------------------------------------------有空就帮我把上面的做一个引用. 展开
Dim RARPath As String = ".\bin\rar.exe"
Dim Password As String = "p123"
Dim CompressionPath As String = "web"
Dim BackupPath As String = "Backup\20100328.rar"------------------------------------------------------------------------------------------------Shell (".\bin\rar.exe a -hp123 -k -r -s -y d:\wwwroot\Backup\20100328.rar d:\wwwroot\web", vbHide)Dim iResult As Integer = MsgBox ("压缩功能...完成", vbHide) 帮忙添加下等待执行完毕后。提示.------------------------------------------------------------------------------------------------有空就帮我把上面的做一个引用. 展开
1个回答
2013-09-18
展开全部
Shell(".\bin\rar.exe a -hp123 -k -r -s -y d:\wwwroot\Backup\20100328.rar d:\wwwroot\web", vbHide, True)vbHide参数的后一个可选参数设为True就可以让Shell同步执行了,只有命令执行完才接着Shell下边的语句.
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询