ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

[IDEA] easily change last modified date to current date

(1/2) > >>

tomos:
=======================================
[IDEA] easily change last modified date to current date
=======================================

I want to be easily change the last modified date of a file to the current date/time * - without having to open it and resave it, i.e. I'm looking for a quicker way of doing this

on searching I see Online Tech Tips recommends a few programmes. Then this page tells me how to do it using a (paid) programme which allows me to do it via file > properties/date/etc.
All are a bit time consuming - it would probably be as easy for me to open and resave the file (the programmes from the fist link would be especially suitable if I wanted to batch change files - but I dont)

Implementation ideas:

* via context menu
* or AHK: with hotkey that would work on file currently selected in file manager (I use DOpus or XYplorer but if I had to I'd use Win. Exp.)
Use:
basically I'm working on files in sequence. These files are sorted by last modified date - so if I want to move a file up the list, the only way is to change the last mod.date (I cant mess with the filenames)


* I'd be very happy with simply changing to current date time - if I want to change it to another date/time I can use 'SetFileDate' programme which I got from the link above: but if some dc whiz programmer can do this too I wont complain ;)

fenixproductions:
2tomos
Maybe add 'SetFileDate' to Windows "Send to" menu?

Personally I would use Total commander for that but DO or XYplorer should have it too!

Edited…

Single file AHK:
--- ---if 0 < 1
{
MsgBox, You must specify file name!
}
else
{
FileSetTime, , %1%, M
}

tomos:
thanks fenix

as I say - if I have to 'send' the file to any programme, it works out quicker to actually open file in default programme and resave it.

thanks for the AHK script but same problem there I think - when I try to open it it says I have to specify filename - that means in the script I presume? or was it intended to be used another way?

It's quite possible DOpus can do this, I should check their forums ...

fenixproductions:
2tomos

as I say - if I have to 'send' the file to any programme, it works out quicker to actually open file in default programme and resave it.-tomos
--- End quote ---

It's not always true. The only thing this script (compiled to exe) does is changing modified date. That is all. Default applications need to read whole file content and in most of the cases they will be slower because of that.

thanks for the AHK script but same problem there I think - when I try to open it it says I have to specify filename - that means in the script I presume? or was it intended to be used another way?-tomos
--- End quote ---

It is meant to be started with filename as parameter. If there is no parameter -> message is shown.

The best for you would be to compile it to EXE and to follow this article:
http://lifehacker.com/software/windows/customize-windows-send-to-menu-136345.php

It should solve "missing file" problem.

P.S. I don't know DO but in TC you can create button with this application and drop needed file on it. Perhaps it's possible in DO too (or start application with selected file name as parameter).

tomos:
well I converted it to exe (first time doing that), made a new 'button' in Dopus with the function:

--- ---"insert exe path here" {filepath}
and . . hey presto - it works a treat :Thmbsup: just got to click the button while the file is selected :)

Navigation

[0] Message Index

[#] Next page

Go to full version