RMD: File timestamp changer

Inane baanter or words of wisdom - you decide...
Post Reply
User avatar
Mayhem
Sheepie Whore
Sheepie Whore
Posts: 12572
Joined: Mon Apr 29, 2002 3:06 pm 0
Location: Londonish
Contact:

RMD: File timestamp changer

Post by Mayhem »

Any recommends for a program that can change ALL the files and subfolders (and files within the subfolders) to a particular time and date? Preferably not command line driven... but hey if it's easy doing it that method then suggest away.
Lie with passion and be forever damned...

Xbox: Mayhem64
User avatar
hairy_pete
Baaaaaaa!
Baaaaaaa!
Posts: 7217
Joined: Mon May 27, 2002 8:10 pm 0
Location: A Tiny Village in Bavaria

Re: RMD: File timestamp changer

Post by hairy_pete »

The 'touch' command may be your weapon of choice.
User avatar
tufty
Sheepie Whore
Sheepie Whore
Posts: 12524
Joined: Fri Jan 07, 2005 4:52 pm 0
Location: French Alps

Re: RMD: File timestamp changer

Post by tufty »

Indeed.

Code: Select all

find ~/directory/i/want/to/change \( -type f -or -type d \) -exec touch -t 19991231120000 {} \;
"massive retard™", "full of shit™", "tiny bitch™", "retarted™", "a bit of a one trick pony™", "petty™", "simple minded idealistic twat™", "miserable humourless fucker™"
User avatar
Dungeon-Dave
Baaaaaa!
Baaaaaa!
Posts: 3925
Joined: Thu Aug 04, 2005 12:01 pm 0
Location: UK
Contact:

Re: RMD: File timestamp changer

Post by Dungeon-Dave »

Perl can also modify timestamps, AFAIK.

What OS/filesystem are you wanting to do this under?
User avatar
Mayhem
Sheepie Whore
Sheepie Whore
Posts: 12572
Joined: Mon Apr 29, 2002 3:06 pm 0
Location: Londonish
Contact:

Re: RMD: File timestamp changer

Post by Mayhem »

Guess I should have said, it's all Windows XP.
Lie with passion and be forever damned...

Xbox: Mayhem64
User avatar
Dungeon-Dave
Baaaaaa!
Baaaaaa!
Posts: 3925
Joined: Thu Aug 04, 2005 12:01 pm 0
Location: UK
Contact:

Re: RMD: File timestamp changer

Post by Dungeon-Dave »

Perl's ye man, then: http://www.perlmonks.org/?node_id=809

If you're stuck, download & install ActivePerl first, then I'll meet you over in the programming forum.
pipclancy
Baa!
Baa!
Posts: 41
Joined: Mon Jul 21, 2003 12:33 am 0

Re: RMD: File timestamp changer

Post by pipclancy »

Hi Mayhem

try the following...

http://www.nirsoft.net/utils/filedatech.html
User avatar
Mayhem
Sheepie Whore
Sheepie Whore
Posts: 12572
Joined: Mon Apr 29, 2002 3:06 pm 0
Location: Londonish
Contact:

Re: RMD: File timestamp changer

Post by Mayhem »

That looks exactly what I need... just click all the files I want to change and hit change! I'll give it a whirl :)
Lie with passion and be forever damned...

Xbox: Mayhem64
Post Reply