Search found 3 matches
- 27 Aug 2012 19:40
- Forum: DOS Batch Forum
- Topic: nested variable name using EnableDelayedExpansion
- Replies: 6
- Views: 4691
Re: nested variable name using EnableDelayedExpansion
It works. Thanks.
- 27 Aug 2012 18:24
- Forum: DOS Batch Forum
- Topic: nested variable name using EnableDelayedExpansion
- Replies: 6
- Views: 4691
Re: nested variable name using EnableDelayedExpansion
There are no error messages, here the code snippet I am using to test this @echo off & setlocal EnableDelayedExpansion cls set a=1 set b=2 set _c!a!=3 set _c!b!=5 echo a : !a! - b : !b! - set_c? is below set _c echo trying to display _c s, (this works) for %%i in (1,2) do echo !_c%%i! echo this ...
- 27 Aug 2012 15:31
- Forum: DOS Batch Forum
- Topic: nested variable name using EnableDelayedExpansion
- Replies: 6
- Views: 4691
nested variable name using EnableDelayedExpansion
Hi, I am working on a script to get max lengths of each column, I'm trying to store lengths of max length in _c1...n vars. number of columns unknown. I was able to get length for each column, create variables to store each with set _c!i! = !n! , n is the length but in order to set the max length for...