ZTree.com  | ZEN  | About...  

 Index   Back

[Bug] %4.%5 on a directory is not empty, but '.'   [Zeta]

By: Ron Metzger       
Date: Nov 17,2019 at 11:38
In Response to: [Bug] %4.%5 on a directory is not empty, but '.' (Hartmut Schneider)

> Some of my F9 Menu scripts use "if [%4.%5] == []" to determine if
> launched from Tree or File window.
> Could work because when in Tree window, %4 and %5 are both empty.
> In addition, if you use the term %4.%5, ZTree expanded this to an empty
> string, i.e. without the user-entered dot in between.
>
> Since v2.4.189, ZTree does no more echo a null string, but echoes the
> user-entered dot:
> The command 'echo %4.%5'
> does echo
> '.'
>
> Sincerely, Hartmut

How about:
if NOT [%4.%5]==[.] echo %4.%5

Good luck
Ron Metzger

55 views      
 

Messages in this Thread

 
94,644 Postings in 11,937 Threads, 348 registered users, 14 users online (1 registered, 13 guests)
Index | Admin contact |   Forum Time: Dec 9, 2019 - 10:15 am EST  |  Hits:29,382,369  (1,204 Today )
RSS Feed