Appending yesterdays date in text file name using batch commands

Closed
Ashish Chavan - Mar 22, 2016 at 06:13 AM
Hello Team,

I am trying to rename the current date to yesterdays date for a text file using batch script command.
For eg: file name = SBCHEInward20160322.txt
Output after executing the batch file = SBCHEInward20160321.txt

Also it should detect the current date present in the file name and then rename it.