AA1.bat has
@ECHO OFF
SET M1=/K@"ZLIST1.ZTM"
C:\ZTREE\ZTW.BAT C %M1%
AA2.bat has
@ECHO OFF
SET M1=/K@"ZLIST2.ZTM"
C:\ZTREE\ZTW.BAT C %M1%
-------------------------------
ZTW.BAT has
@ECHO OFF
SET Z1=C:\ZTREE\ZTW.EXE
SET Z2=C:\ZTREE\ZTW64.EXE
SET O1=/M /Y
SET V1=/COLS:100:80:999 /ROWS:54:25:999
SET V2=/COLS:100:80:999 /ROWS:43:25:999
REM *************************************************
IF DEFINED PUBLIC GOTO :Win10
%Z1% %O1% %V1% %*
GOTO :END
:Win10
IF /I "%ComputerName%"=="CCCC" GOTO :LAPTOP
%Z2% %O1% %V1% %*
GOTO :END
REM -----------------
:LAPTOP
%Z2% %O1% %V2% %*
GOTO :EOF
:END
******************************************
if i start a ztree with AA1.bat or AA2.bat
F9's ztreemenu's batches get their variables mixed up
it ruins F9 batches inside.
echo %V1% %V2% %Z1% %Z2% %O1%
how can %V1% %V2% %Z1% %Z2% %O1% still pass through and why do i still get those variables from ztw.bat?