ZTree.com  | ZEN  | About...  

 Index   Back

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

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

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

From here in your original post
@echo off
REM Make batch file of tagged files and rename searchable ones to "* [searchable].*"
REM #ZTTag #ZTTemp\~ZTTag.bat -f"#ZTHOME\#ZTTOOLS\PDFTOOLS\test.bat" "%1" test.xyz
Call #ZTTemp\~ZTTag.bat



> My code correctly works on the first tagged file but never calls the
> second in the list.
Because you are not "CALL"ing the test.bat script, so on the first line of the #ZTTag generated script you are chaining to the test.bat script, instead of calling to the test.bat script, so only the first line will be processed.

You need to update to this
REM #ZTTag #ZTTemp\~ZTTag.bat -fCall "#ZTHOME\#ZTTOOLS\PDFTOOLS\test.bat" "%1" test.xyz

164 views      
 

Messages in this Thread

 
96,456 Postings in 12,197 Threads, 350 registered users, 85 users online (0 registered, 85 guests)
Index | Admin contact |   Forum Time: Sep 30, 2023 - 7:32 am UTC  |  Hits:58,246,256  (11,003 Today )
RSS Feed