# CreateZip

## Description

Creates a zip file at the specified location and opens it ready for files to be added. Files cannot be read or extracted from a zip file using this command. Use ExtractZip to retrieve files from it.
The file path is relative to the current directory set using SetFolder unless you start the path with a forward slash, in which case the path will be relative to the root of the write directory on the current platform.

## Definition

integer CreateZip( filename )

UINT agk::CreateZip( const char* filename )

CreateZip( zipID, filename )

void agk::CreateZip( UINT zipID, const char* filename )

## Parameters

- zipID - The ID used to reference this zip file.
- filename - The file name and path for this new zip file.