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

314 views      
 

Messages in this Thread

 
96,640 Postings in 12,231 Threads, 350 registered users, 69 users online (0 registered, 69 guests)
Index | Admin contact |   Forum Time: Apr 12, 2024 - 3:24 pm UTC  |  Hits:62,818,715  (14,246 Today )
RSS Feed