Page 2 of 2

Re: Script to Update "Created/Modified Date" Based on File N

Posted: 20 Jan 2013 19:42
by highend
Change this line:
$date = regexreplace($file, $RegExFind, $RegExReplace);
to:
$date = regexreplace(getpathcomponent($file, "base"), $RegExFind, $RegExReplace);
and try it again.

Re: Script to Update "Created/Modified Date" Based on File N

Posted: 20 Jan 2013 21:32
by Sloot
This worked perfectly! Thanks very much.

I have spent a lot time looking for a way to change the modified / created date of my video files based on the file name. I came across XYplorer yesterday and a possible solution to my problem with XYplorer's powerful scripting capabilities.

Great product and great support from this community.

Re: Script to Update "Created/Modified Date" Based on File N

Posted: 20 Jan 2013 22:08
by serendipity
Sloot wrote:Great product and great support from this community.
Welcome!
Glad you found a solution.
Tip: If you think XYplorer is something you will use for a long time then invest in a lifetime license which is available ONLY until 27th of this month. Lifetime license will be obsolete on 28th January.
Statement by Admin: http://www.xyplorer.com/xyfc/viewtopic. ... 070#p80070
Link to license page: http://www.xyplorer.com/purchase.php

Re: Script to Update "Created/Modified Date" Based on File N

Posted: 20 Jan 2013 22:17
by highend
This worked perfectly! Thanks very much
np.