Results 1 to 3 of 3

Thread: [RESOLVED] unzip file and storing in temp folder using vb6 code

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2009
    Location
    Watch Window(Shift+f9)
    Posts
    1,879

    Resolved [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

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2009
    Location
    Watch Window(Shift+f9)
    Posts
    1,879

    Question 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

  3. #3
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: unzip file and storing in temp folder using vb6 code

    I am guessing you did not declare SYNCHRONIZE?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width