|
-
May 16th, 2011, 02:37 PM
#1
Thread Starter
Frenzied Member
[RESOLVED] unzip file and storing in temp folder using vb6 code
hi friends,
can you tell me ?what is the uses of the following code .here is the following code what i have written .but please let me know your opion .i simple
want to unzip the zip file .and i want to store in the temp folder of c:/.
Code:
If Dir$("c:\program Files\winrar\winrar.exe") = "" Then
MsgBox "Winrar Is Not installed", vbQuestion
Exit Sub
End If
ProcessId = Shell("c:\progra~1\winrar\winrar e -inul " & Chr(34) & Source & Chr(34) & " " & Chr(34) & Target & Chr(34), vbHide)
process_handle = OpenProcess(Synchronize, 0, ProcessId)
If process_handle <> 0 Then
WaitForSingleObject process_handle, INFINITE
CloseHandle process_handle
End If
-
May 17th, 2011, 01:55 AM
#2
Thread Starter
Frenzied Member
Re: unzip file and storing in temp folder using vb6 code
hallo friends
why i am getting the variable not found ?.here is the following code what
i have written .
Code:
Private Sub Form_Load()
Dim Spath$, tpath$
Dim processID#
'------------------------------------------ download zip files
'------------------------------------------ unzip files
Spath = "C:\"
tpath = "c:\temp"
If Dir$("c:\program Files\winrar\winrar.exe") = "" Then
MsgBox "Winrar Is Not installed", vbQuestion
Exit Sub
End If
processID = Shell("c:\progra~1\winrar\winrar e -inul " & Chr(34) & Spath & Chr(34) & " " & Chr(34) & tpath & Chr(34), vbHide)
process_handle = OpenProcess(SYNCHRONIZE, 0, processID)
If process_handle <> 0 Then
WaitForSingleObject process_handle, INFINITE
CloseHandle process_handle
End If
'------------------------------------------ process file
End Sub
-
May 17th, 2011, 02:50 AM
#3
Re: unzip file and storing in temp folder using vb6 code
I am guessing you did not declare SYNCHRONIZE?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|