VB调用winrar压缩文件

coco_hong 2005-06-30 02:34:16
vb调用winrar压缩文件时,怎样判断压缩已经完成呢???急,请各位多多帮忙..
...全文
80 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
coco_hong 2005-06-30
  • 打赏
  • 举报
回复
谢谢各位,现在真的可以了,非常感谢.
daisy8675 2005-06-30
  • 打赏
  • 举报
回复
http://search.csdn.net/Expert/topic/880/880899.xml?temp=.4475672
Fanks 2005-06-30
  • 打赏
  • 举报
回复
Public Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long
Public Declare Function GetExitCodeProcess Lib "kernel32" (ByVal hProcess As Long, lpExitCode As Long) As Long


Sub ShellWait(sCommandLine As String) '等到外部程序执行完成
Dim hShell As Long, hProc As Long, lExit As Long
hShell = Shell(sCommandLine, vbHide)
hProc = OpenProcess(&H400, False, hShell)
Do
GetExitCodeProcess hProc, lExit
DoEvents
Loop While lExit = &H103
End Sub

用这个函数调用就可以了

7,763

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧