#1 2013-04-07 00:45

Dirk
Member
Registered: 2013-04-05
Posts: 91

How can i change an time stamp of a file?

Is it possible to change the time stamp? Creating time, last accessed, last modified?

Offline

#2 2013-04-07 14:46

doubledrat
Member
Registered: 2013-04-07
Posts: 6

Re: How can i change an time stamp of a file?

at the operating system level, renaming a file doesn't normally change those attributes.

you could always use a downloadable dos utility called "touch" to do it - depends on how granular you want to be

Offline

#3 2013-04-07 15:11

Dirk
Member
Registered: 2013-04-05
Posts: 91

Re: How can i change an time stamp of a file?

Thank you,

So, I assume, it is not possible to change these file times / the time stamp with ReNamer.

Thanks again.

Offline

#4 2013-04-07 17:39

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: How can i change an time stamp of a file?

Dirk wrote:

Is it possible to change the time stamp? Creating time, last accessed, last modified?

It would always use my file manager, but i think ReNamer can do that too by utilizing an script command, see

http://www.den4b.com/wiki/ReNamer:Pasca … Management
function SetFileTimeCreated(const FileName: WideString; const DateTime: TDateTime): Boolean; - Sets creation time for the specified file.
function SetFileTimeModified(const FileName: WideString; const DateTime: TDateTime): Boolean; - Sets last modified time for the specified file.


There are also this commands to execute third party apps:
function ExecuteProgram(const Command: String; WaitForProgram: Boolean): Cardinal;
function ExecConsoleApp(const CommandLine: String; out Output: String): Cardinal;

For an how-to use them see
http://www.den4b.com/wiki/ReNamer:Scripts


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#5 2013-04-07 18:20

Dirk
Member
Registered: 2013-04-05
Posts: 91

Re: How can i change an time stamp of a file?

Thank you.

Many thanks for the links and codes, sorry again, I have any idea, how to use that, sounds very complicated for me.

Thanks again.

Offline

#6 2013-04-08 03:11

narayan
Senior Member
Registered: 2009-02-08
Posts: 471

Re: How can i change an time stamp of a file?

Some file managers (e.g. explorer2) can do this.

Offline

#7 2013-04-08 08:23

Dirk
Member
Registered: 2013-04-05
Posts: 91

Re: How can i change an time stamp of a file?

Thank you for the link, I will have a look at it.

Offline

Board footer

Powered by FluxBB