Forum Discussion
irina_lukina
13 years agoSuper Contributor
Hi Ofer,
I guess, it's something like this:
//Specifies the location of the zip file.
var ZipFile = "D:\\Test\\Test.zip";
//Specifies the folder the contents should be extracted to.
var ExtractTo = "D:\\Test";
// If the extraction location does not exist, create it.
var fso = new ActiveXObject("Scripting.FileSystemObject");
if ( !fso["FolderExists"](ExtractTo) ) then
fso["CreateFolder"](ExtractTo);
//Extract the contents of the zip file.
var objShell = new ActiveXObject("Shell.Application");
var FilesInZip = objShell["NameSpace"](ZipFile)["items"]();
objShell["NameSpace"](ExtractTo)["CopyHere"](FilesInZip);
fso = null;
objShell = null;
Related Content
- 8 months ago
- 3 years ago
- 7 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago