How do I remove a certain part of a variable?
Moderator: DosItHelp
-
- Posts: 1
- Joined: 11 Nov 2010 18:55
How do I remove a certain part of a variable?
for example, if i set a variable as the date, 11/11/2010, what command could i use to remove the "/", making the variable 11112010?
Re: How do I remove a certain part of a variable?
Code: Select all
@set var=11/11/2010
@set var=%var:/=%
@echo %var%
@pause>nul