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

532 views      
 

Messages in this Thread

 
96,664 Postings in 12,235 Threads, 350 registered users, 213 users online (1 registered, 212 guests)
Index | Admin contact |   Forum Time: Jun 16, 2024 - 4:43 pm UTC  |  Hits:64,857,799  (67,859 Today )
RSS Feed