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

266 views      
 

Messages in this Thread

 
96,626 Postings in 12,229 Threads, 350 registered users, 70 users online (0 registered, 70 guests)
Index | Admin contact |   Forum Time: Feb 24, 2024 - 7:16 pm UTC  |  Hits:61,577,060  (21,730 Today )
RSS Feed