ZTree.com  | ZEN  | About...  

 Index   Back

[Help!] Calling a batch file from ZTreeMenu   [Help!]

By: Bob Selby       
Date: Jul 11,2023 at 15:54
In Response to: [Help!] Calling a batch file from ZTreeMenu (Ben Kent)

Not sure where you get "#ZTHOME\#ZTTOOLS\test.bat" ...
Bob

My code correctly works on the first tagged file but never calls the second in the list.

Bob


> Bob
>
> For me, this
> REM #ZTTag #ZTTemp\~ZTTag.bat
> -f"#ZTHOME\#ZTTOOLS\PDFTOOLS\test.bat" "%1" test.xyz
>
> Generates a ~ZTTag.bat file with one line per tagged file, with the
> tagged files replacing the "%1".
> So far so good.
>
>
> But "#ZTHOME\#ZTTOOLS\test.bat" expands to this, which is an
> invalid path, so the command should fail.
> "C:\Program Files\ZTree
> Windows\C:\Users\myusername\AppData\Roaming\ZTreeWin\PDFTOOLS\test.bat"
> Maybe your #ZTTOOLS has a value that generates a valid path.
>
>
> In your test.bat do a ECHO ON at the beginning and add a PAUSE at the
> end, then it might show what is going wrong.
>
> Ben

170 views      
 

Messages in this Thread

 
96,456 Postings in 12,197 Threads, 350 registered users, 102 users online (0 registered, 102 guests)
Index | Admin contact |   Forum Time: Sep 30, 2023 - 6:17 am UTC  |  Hits:58,244,413  (9,160 Today )
RSS Feed