9.230 ZIP_MAKE_EXE

Note: Built-In Function Rules     Usage Options

Allows a .zip file to be converted to a self-extracting archive. When the .exe file is run, the zipped files will be extracted to the current directory.

Also See

ZIP Built-In Function Note

Arguments

No

Type

Req/ Opt

Description

Min Len

Max Len

Min Dec

Max Dec

1

A

Req

Zip file/path name

If no path is specified, the file is assumed to be in the temporary directory.

If file name does not have an extension, .zip will be appended.

1

256

 

 

2

A

Opt

Exe file/path name

If no path is specified, the file will be created in the temporary directory.

If file name does not have an extension, .exe will be appended

The default is to use the same file name as argument 1 with .exe instead of .zip

1

256

 

 

 

Return Values

No

Type

Req/ Opt

Description

Min Len

Max Len

Min Dec

Max Dec

1

A

Req

Return Code

OK = Exe file created okay

ER = An error was encountered

2

2

 

 

 

Technical Notes

The .exe file that is created also supports some useful command line options:

-t

Test the validity of the zip file contained within the self-extracting archive.

-f

Extract only those files that already exist on disk and that are newer than the disk copies

-u

Update existing files and create new ones if needed

-n

Never overwrite existing files. By default, if a file already exists, the user is prompted

-o

Always overwrite existing files

-q

Quiet mode (no listing of files being extracted).

-qq

Even quieter mode