I am trying to write a batch script that will auto update the date portion of files I receive on a regular basis. For example the file names will look like: test file(20150101).
The numbers in parenthesis is the date in the format I need it in. So far I have:
FOR /F "tokens=2 delims=()" %%a IN ("test file(20150101)") DO (set var=%%a)
This does not seem to be updating the date in the file name. Is there a way to get the desired results in the format I want?