ZTree.com  | ZEN  | About...  

 Index   Back

[Help!] AA1.bat calls ZTW.BAT and ZTW.bat runs ztw.exe, variables mixed up   [Help!]

By: Ryan       
Date: Jan 03,2022 at 17:31

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?

522 views      
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 62 users online (0 registered, 62 guests)
Index | Admin contact |   Forum Time: Mar 28, 2024 - 5:47 pm UTC  |  Hits:62,374,770  (27,167 Today )
RSS Feed