Here is an example
//Path_to_Folder/Program Name2 (2) DD.MM.YY 22
- OR -
//Path_to_Folder/REVISED Program Name2 (2) DD.MM.YY 22
Some things I know will always be there are "Program Name" and "DD.MM.YY" the rest are up in the air. So I have devised a less elegant way of hangleing it
Code: Select all
@Echo Off
P:
cd "Path_to_Folder"
#Grab today's date
SET WEEKDAY=%date:~0,3%
SET MONTH=%date:~4,2%
SET DAY=%date:~7,2%
SET YEAR=%Date:~12,2%
#find the directory with wildcards
cd "*Program Name? (?) %MONTH%.%DAY%.%YEAR%*"
#Copy all audio files
copy /Y /B *.mp3 "I:\Shows\Dick Clark Calendar\"
exit
Now I'm for a script that would look take a variable %MONTH%.%DAY%.%YEAR% save it, so I could simply rename the folder from:
//Path_to_Folder/Program Name2 (2) DD.MM.YY 22
to:
//Path_to_Folder/Program Name DD.MM.YY