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
- 3 years ago
- 4 years ago
- 2 years ago
Recent Discussions
- 9 hours ago
- 10 hours ago
- 16 hours ago