ZTree.com  | ZEN  | About...  

 Index   Back

[ZEP] New Batch Parameters   [ZEP]

By: John Gruener     Orlando, Florida  
Date: Sep 30,2019 at 13:03
In Response to: [ZEP] New Batch Parameters (Hartmut Schneider)

> > %bc = \CCC\DDD\EEE\FFF
> > %br = \DDD\EEE\FFF

> Quick question for now:
> Using %b can be unclear if followed by a user-chosen letter, e.g. if he
> wants to append letters to the filename/extension.
> Would be clearer if %b is always followed by a sub-letter.
> e.g. %bq = C:\AAA\BBB\CCC\DDD\EEE\FFF (q = fully _qualified path,
> as used near %~f1 in 'call /?')
> Or can ZTree distinguish otherwise between %b, and %b followed by f/c/r?

Good point. Although perhaps less likely, the same problem could happen with %d if the user follows it with m, c or a. I modeled it after that set of parameters, but as you point out, there is a potential conflict.

I think I'd prefer %b1, which is like %1 without the file name. So we'd have:
%b1 = Branch root path to the file including the drive letter and colon.
%bf = Branch Full directory path to the file without the drive letter and colon.
%bc = Branch Current directory path.
%br = Branch Relative directory path.

- John


Messages in this Thread

94,751 Postings in 11,947 Threads, 348 registered users, 8 users online (0 registered, 8 guests)
Index | Admin contact |   Forum Time: Feb 25, 2020 - 7:34 pm EST  |  Hits:30,128,217  (7,825 Today )
RSS Feed