ZTree.com  | ZEN  | About...  

 Index   Back

[Help!] REM #ZTIfDir SET ZTMode=Dir related questions   [Help!]

By: Liviu       
Date: Jun 05,2017 at 16:29
In Response to: [Help!] REM #ZTIfDir SET ZTMode=Dir related questions (Ryan)

> BB=
> SET N1=%4 & SET N2=%N1:~0,7%
>
> can someone explain why AA= works and BB= doesnt work?

As written, N1 ends up with a trailing space at the end. To avoid it:

- either leave no space before "&":  SET N1=%4& SET N2=%N1:~0,7%

- or quote appropriately:  SET "N1=%4" & SET "N2=%N1:~0,7%"

Cheers,
Liviu

816 views      
Thread locked
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 59 users online (0 registered, 59 guests)
Index | Admin contact |   Forum Time: Mar 28, 2024 - 7:08 pm UTC  |  Hits:62,376,945  (29,342 Today )
RSS Feed