![]() |
Chilkat HOME Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi DLL Go Java JavaScript Node.js Objective-C PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(PowerBuilder) Check if a File is in Gzip FormatSee more Gzip ExamplesThis example demonstrates how to use the The method inspects the contents of the specified file and returns If the method fails (for example, if the file does not exist or cannot be accessed), the
integer li_rc oleobject loo_Gzip string ls_FilePath integer li_IsGzip // This example demonstrates how to determine if a file is in Gzip format. loo_Gzip = create oleobject li_rc = loo_Gzip.ConnectToNewObject("Chilkat.Gzip") if li_rc < 0 then destroy loo_Gzip MessageBox("Error","Connecting to COM object failed") return end if // The file to examine: ls_FilePath = "test.gz" // Check if the file is a valid Gzip file: li_IsGzip = loo_Gzip.ExamineFile(ls_FilePath) if li_IsGzip = 1 then Write-Debug "The file is a valid Gzip file." else Write-Debug "The file isnot a Gzip file." end if destroy loo_Gzip |
||||
© 2000-2026 Chilkat Software, Inc. All Rights Reserved.