ZTree.com  | ZEN  | About...  

 Index   Back

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

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

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

198 views      
 

Messages in this Thread

 
96,456 Postings in 12,197 Threads, 350 registered users, 99 users online (0 registered, 99 guests)
Index | Admin contact |   Forum Time: Sep 30, 2023 - 5:37 am UTC  |  Hits:58,243,365  (8,112 Today )
RSS Feed