How do I?
How do I?
I need to rename a file and play it before the actual date of the file.For example, a file with the name XYZ565-20100701.mp3 would have to be renamed XYZ-20100701.mp3 and then played in media player. The trouble is this has to occur the day before, as in on June 30th. The file for Monday has to be played on the previous Friday. I tried using XYZ***-{Year}{MonthNo}{Day}.mp3 but to no avail. Even tired using the IncDays(+-) without luck. The astericks are actually 3 file numbers that I remove because they change each day and I couldn't get the program to overlook those 3 numbers, hence the rename of the file. Also, Windows Media player will not accept a file with *** as part of the name. I rename the file to XYZ-{Year}{MonthNo}{Day}.mp3. When the file is the current day it works fine, but I need it to look at the next day file or in the case of Friday, at Monday's file.Any help is appreciated.
How do I?
If you want to use previous day you should use expression like this
yesterday:
XYZ-{YearIncDays(-1)}{MonthIncDays(-1)}{IncDays(-1)}
tomorrow:
XYZ-{YearIncDays(1)}{MonthIncDays(1)}{IncDays(1)}
two days ago
XYZ-{YearIncDays(-2)}{MonthIncDays(-2)}{IncDays(-2)}
and etc.
yesterday:
XYZ-{YearIncDays(-1)}{MonthIncDays(-1)}{IncDays(-1)}
tomorrow:
XYZ-{YearIncDays(1)}{MonthIncDays(1)}{IncDays(1)}
two days ago
XYZ-{YearIncDays(-2)}{MonthIncDays(-2)}{IncDays(-2)}
and etc.