Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
General Discussion
 RoboTask Forum : General Discussion
Subject Topic: How do I? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
darheim
Newbie
Newbie


Joined: 30 June 2010
Online Status: Offline
Posts: 3
Posted: 30 June 2010 at 11:57am | IP Logged Quote darheim

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.
Back to Top View darheim's Profile Search for other posts by darheim
 
Oleg
Admin Group
Admin Group
Avatar

Joined: 16 April 2004
Online Status: Offline
Posts: 1136
Posted: 02 July 2010 at 1:04am | IP Logged Quote Oleg

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.

__________________
Oleg Yershov
Back to Top View Oleg's Profile Search for other posts by Oleg Visit Oleg's Homepage
 
darheim
Newbie
Newbie


Joined: 30 June 2010
Online Status: Offline
Posts: 3
Posted: 06 July 2010 at 7:54am | IP Logged Quote darheim

Thank you. It worked flawlessly.
Back to Top View darheim's Profile Search for other posts by darheim
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.0625 seconds.