[Show/Hide Left Column]

Caution with lowercase variables

You should always write standard environment variables in UPPERCASE letters in ZTreeWin scripts to avoid possible conflicts with ZTreeWin's own internal parameters.

On the contrary, ZTreeWin's %a, %d, %j and %s parameters are required to be in lowercase to be interpreted as ZTreeWin's batch parameters.

If you have a standard environment variable that starts with "a", "d", "j", or "s", and it's not capitalized, ZTreeWin will interpret it as one of its own
batch parameters. For example if you have the fictitious environment variable:
%drive_current%

Ztree will substitute that variable with for its own Timestamp parameter (%d) at execution time. These kind of errors can be very difficult to trap. To avoid this, keep the habit of writing
%DRIVE_CURRENT%
or
  %Drive_current%


Contributors to this page: admin and laurent .
Page last modified on Sunday 08 of November, 2009 15:01:27 EST by admin.