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
Set Dest = .NameSpace(sUnzipDestination)
Set Sour = .NameSpace(sUnzipFileName).Items
Set oUnzipFSO = Nothing
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