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