How do I remove a certain part of a variable?
Posted: 11 Nov 2010 19:00
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?
A Forum all about DOS Batch
https://www.dostips.com/forum/
Code: Select all
@set var=11/11/2010
@set var=%var:/=%
@echo %var%
@pause>nul