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


Messages in this Thread

96,664 Postings in 12,235 Threads, 350 registered users, 206 users online (1 registered, 205 guests)
Index | Admin contact |   Forum Time: Jun 16, 2024 - 4:49 pm UTC  |  Hits:64,858,244  (68,304 Today )
RSS Feed