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

94,590 Postings in 11,932 Threads, 348 registered users, 17 users online (1 registered, 16 guests)
Index | Admin contact |   Forum Time: Nov 20, 2019 - 7:32 am EST  |  Hits:29,193,753  (6,994 Today )
RSS Feed