PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Use conditions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Closes an archive.
Versions 18 and later
WINDEVWindows This function now supports the 7z format.
New in version 18
WINDEVWindows This function now supports the 7z format.
WINDEVWindows This function now supports the 7z format.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
WINDEVWindowsLinuxUniversal Windows 10 App This function now supports the TAR and TGZ (TAR.GZ) formats.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
WINDEVWindowsLinuxUniversal Windows 10 App This function now supports the TAR and TGZ (TAR.GZ) formats.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
WINDEVWindowsLinuxUniversal Windows 10 App This function now supports the TAR and TGZ (TAR.GZ) formats.
WINDEVUser code (UMC)
MonArchive is zipArchive
// Ouverture d'une archive
ResOuvreArchive = zipOpen(MonArchive, "C:\Archives\Archive.zip")
 
IF ResOuvreArchive = 0 THEN
// Traitements
...
// Fermeture de l'archive
zipClose(MonArchive)
END
Syntax
zipClose(<Archive>)
<Archive>: Character string or zipArchive variable
Name of archive to use.
This name can correspond to:
  • or to the name of an archive defined with function zipOpen or function zipCreate.
  • Versions 15 and later
    WINDEV the name of a variable of type zipArchive.
    New in version 15
    WINDEV the name of a variable of type zipArchive.
    WINDEV the name of a variable of type zipArchive.
Remarks

Use conditions

  • An archive can be closed only if:
    • The archive is opened. An archive is opened with the zipOpen function.
    • The archive exists. An archive is created with the zipCreate function.
  • All the archives will be automatically closed when the application is stopped.
  • A WLanguage error occurs if the archive to close does not exist. The program is stopped.
Reminder:
  • LinuxUniversal Windows 10 App Only ZIP, TAR and TGZ (TAR.GZ) archives are available.
  • Java Only ZIP archives are available.
Business / UI classification: Business Logic
Component: wd270zip.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
exemplo fechar zip
https://windevdesenvolvimento.blogspot.com/2021/06/dicas-3348-windev-webdev-mobile-windev.html
https://youtu.be/495RvqL4j20
Esse Video vai estrear as 10:00 do dia 11/06/2021
sNome_pasta is string=fExeDir()+"\copia\"
sArquivos_retorno is string=fListFile(sNome_pasta+"*.*") // Vamos ver quais arquivos estao nesse diretorio
LIST_arquivos.DeleteAll() // Cria o list box, -: é opcional

sNome_arquivo_zip is string="arquivo"
zipCreate(sNome_arquivo_zip,fExeDir()+"\"+sNome_arquivo_zip+".zip")

FOR EACH STRING sArquivo_individual OF sArquivos_retorno SEPARATED BY CR
LIST_arquivos.Add(sArquivo_individual) // adiciona no list box para ver os arquivos é opciona
zipAddFile(sNome_arquivo_zip,sArquivo_individual,zipDrive)
END
IF CBOX_criar_Executavel=True THEN
NOME_ARQUIVO_eXE is string=fExeDir()+"\"+sNome_arquivo_zip+".exe"
zipCreateExe(sNome_arquivo_zip,NOME_ARQUIVO_eXE,zipCurrentDirectory)
END
zipClose(sNome_arquivo_zip)
amarildo
06 Jun. 2021