modify a variable content

June 21, 2011 at 06:48:21
Specs: Windows XP
Hi,
I need to change the content of a variable in a script I'm writing.
Now in the variable I have something like "[number]username" i.e. "[01]david"
and I need to put it on another variable without numbers and the square brackets i.e. "david".
So, I need something that removes everything inside and the brackets from the variable
and parse it to another one, how can I do it?

Thanks


See More: modify a variable content

Report •


#1
June 21, 2011 at 08:01:12
set NewVar=%Var:*]=%


Report •

#2
June 22, 2011 at 01:40:46
Aces Ivo, it worked like a charm.

Thanks


Report •

Related Solutions


Ask Question