ZTree.com  | ZEN  | About...  

 Index   Back

[General] zttag AAA.BAT %%2 %2:%p %2:%3 %6 understood why it didn't work   [General]

By: Ryan       
Date: Jan 14,2022 at 04:50

i think i understood,
%%2 changes its value as zttag moves to the next tagged file
but all other variables stayed where the cursor was.
this was why i was getting the 1st one correct
it was not halting and it was just showing the same message
since i didnt need a full path, i didnt echo it to show
it all means i still have to filter out parent dir name, current dir name, and file name from %%2
i was hoping for an easy way

zttag in F9 has
REM #ZTTag #ZTTemp\~ZTTag.bat -fCALL #ZTTemp\ZTW_MENU.BAT SUB %1
IF [%%1]==[SUB] GOTO :SUB
CALL #ZTTemp\~ZTTag.bat
DEL #ZTTemp\~ZTTag.bat
GOTO :END

:SUB
"C:\ZTREE\ZTTAG\AAA.BAT" %%2 %2:%p %2:%3 %6
GOTO :END
:END

AAA.BAT has
set "FUL=%~1"
SET "PDP=%~2"
SET "CDP=%~3"
SET "CDN=%~4"

ECHO FUL - %FUL%
ECHO PDP - %PDP%
ECHO CDP - %CDP%
ECHO CDN - %CDN%
pause

475 views      
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 55 users online (0 registered, 55 guests)
Index | Admin contact |   Forum Time: Mar 28, 2024 - 12:26 pm UTC  |  Hits:62,366,254  (18,651 Today )
RSS Feed