User Tools

Site Tools


Sidebar

misc:ziplocation

ZipLocation()

Function that uses the function isValid7ZipPath() to check whether the global variable v7Location is a valid path to the 7-Zip executable. When the variable does not hold a valid path, the function shows a dialog with which the user can select the 7-Zip executable. This function is an internal function used by the methods File.zip() and Folder.zip().

Usage

if(ZipLocation()) {
  file.zip("archive.zip", "tzip", 5, "a");
}

Parameters

This function has no parameters.

Return Values

Value Meaning
true The variable v7Location holds a valid path to the 7-Zip executable. Also returns true when the user selected the executable
false The variable v7Location does not hold a valid path to the 7-Zip executable. The user did not select a valid path
misc/ziplocation.txt · Last modified: 2017/05/25 15:15 by Willam van Weelden