ZIP-Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > ZIP. - Handle Archives >

ZIP-Commands

ZIP.Get Zip Filename

Previous Top Next


MiniRobotLanguage (MRL)

 

ZIP.get Zip Filename

Compute an filename ending in ".zip"

 

 

Intention

 

The ZIP.gtfn - Command can be used to compute the Target-Filename of an ZIP.-Operation.

You just call the command with the Source-Path of the File or Folder to be Zipped.

As a result you will get the Target Filename of the ZIP-File that will be created.

 

' Only give the Path of the folder to ZIP.

ZIP.gtfn|§§FIF|§§FIP

' Will display the Filename that is expected to be used by a following

' ZIP.cf|§§FIP - Operation

MBX.§§FIP

 

In this case the Folder-Name will be taken to construct the Name of the ZIP-Archive.

This operation is a pure String-Operation, it does not make any changes on files.

 

The "cf","zf" and the "uv" command are compatible with standard ZIP-Format.

 

 

Syntax

 

ZIP.gtfn|P2[|P3]

 

 

Parameter Explanation

 

P1 -  "gtfn" or "Get Zip Filename"

 

P2 - Variable with the path or the filneame of the file or folder that is to be compressed

       with a later command.

 

P3 - (optional) Variable with the target file-name and path.

      If omitted the result is placed on TOS.

 

 

 

Example

 

'***********************************************

' Sample 1: ZIP.

'***********************************************

ZIP.gtfn|§§FIF|§§FIP

MBX.§§FIP

ENR.

 

 

 

Remarks

 

This operation is a pure String-Operation, it does not make any changes on files.

 

 

 

Limitations:

 

-

 

 

 

See also:

 

  ZIP. - Handle Archives

  uf - unzip file/folder

  uv - uncompress var

  cv - compress var

  sdk - set default compression

  3.3 Specialfolders