Results 1 to 2 of 2
  1. #1

    Issue while Unzipping files using QTP 11


    I am trying to unzip a file using QTP 11 in Windows 2003 server/XP but i am getting as "The system cannot find the file specified". But when I tried executing the same code using QTP 11 in Windows 7 i was unable to unzip the file successfully. But i want these files to be unzipped in 2003 server/XP as well. Kindly help me out in resolving this issue.

    Code that i am using :

    sUnzipFileName = "C:\Sample.zip"
    sUnzipDestination = "C:\Test"

    Set oUnzipFSO = CreateObject("Scripting.FileSystemObject")
    If Not oUnzipFSO.FolderExists(sUnzipDestination) Then
    End If

    With CreateObject("Shell.Application")
    Set Dest = .NameSpace(sUnzipDestination)
    Set Sour = .NameSpace(sUnzipFileName).Items
    Dest.CopyHere Sour
    End With
    Set oUnzipFSO = Nothing

  2. #2

    Re: Issue while Unzipping files using QTP 11


    Sorry there is a typo mistake in my previous mail The same code works successfully in Windows 7 and it is not working in Windows 2003 server/XP only



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 03:52 PM.

Copyright BetaSoft Inc.