ZTree.com  | ZEN  | About...  

 Index   Back

[Q] N=20, ECHO %%%P1:~0,%%N%%%%, how can i make it work? [Bug?]   [Q]

By: Ryan       
Date: Aug 28,2017 at 10:28


AA=works in ztreemenu
ECHO %P1:~0,78%

BB=works in command line but not in ztreemenu as it was meant to
SET N=20
ECHO %%P1:~0,%N%%%

CC=doesnt work in ztreemenu, i think it is a bug in ztree
so i started adding more %'s hoping it to work, but no luck so far

SET N=20
ECHO %%%P1:~0,%N%%%% no work in ztree
ECHO %%%P1:~0,%%N%%%% no work in ztree
ECHO %%%P1:~0,%%N%%%%% no work in ztree

how can i make it work?

but without using delayed expansion... which i havent tried yet

sometimes adding 1 more % doesnt work, and i have been blindly adding %'s until it worked, then it worked, but no luck with AA=

Thread locked

Messages in this Thread

95,067 Postings in 11,984 Threads, 350 registered users, 81 users online (1 registered, 80 guests)
Index | Admin contact |   Forum Time: Aug 7, 2020 - 11:47 am EDT  |  Hits:32,931,615  (14,656 Today )
RSS Feed