Модератор: Модераторы
Function UnZipFiles(sZipFile, sDest) 
    'Create Shell.Application object 
    Set oShell = WScript.CreateObject("Shell.Application") 
    'Get zip file namespace object 
    Set oFolder = oShell.NameSpace(sZipFile) 
    'Get list of items in zip file 
    Set oItems = oFolder.Items 
    'If not exists, create destination folder 
    Set fso = CreateObject("Scripting.FileSystemObject") 
    If fso.FolderExists(sDest) = 0 Then fso.CreateFolder(sDest) 
    'Get destination folder namespace object 
    Set oDest = oShell.NameSpace(sDest & "") 
    'Extract the files 
    oDest.CopyHere oItems, 64
End Function 
Вернуться в Сторонние средства
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 1