PrecisionDan
2 years agoOccasional Contributor
Is it possible to unzip a compressed folder through a TestComplete script (c#Script)
Hello, I've got a .zip stored locally that I'm hoping I can unzip and open using testcomplete. I have had an explore around the aqFileSystem and aqFile objects but haven't been able to work anyth...
- 2 years ago
Thank you for the help here. I also found another solution to this in one of the comments here: https://community.smartbear.com/t5/TestComplete-Questions/Unzipping-zip-files/m-p/125798/highlight/true#M14273
Basically, I needed to replace
var fso = new ActiveXObject("Scripting.FileSystemObject");
with
var objShell = new ActiveXObject("Shell.Application");
and
var fso = Sys.OleObject("Scripting.FileSystemObject")
with
var objShell = Sys.OleObject("Shell.Application");