change the file timestamp

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
chunwaihome
Junior Member
Junior Member
Posts: 75
Joined: 2005-02-09, 04:38 UTC

change the file timestamp

Post by *chunwaihome »

Hi,
How i convert the file date when i copy/move it to at that time?
e.g. the original file date is 1/1/05 but the timestamp will change to 6/1/06 after i copy/move this file.
thx
User avatar
majkinetor
Senior Member
Senior Member
Posts: 369
Joined: 2005-11-20, 10:36 UTC
Location: Belgrade, Serbia
Contact:

Post by *majkinetor »

Use change attributes (file->change attributes->datetime->current) on selection before copy or create batch script for the Start menu or crate AutoHotkey script to recognize when copy dialog is isued and change automaticaly time stamp of the selection.
We are not doing this just for the money.
We are doing it for sh*t load of money.
 
 
r-moth.com
r-moth.deviantart.com
User avatar
chunwaihome
Junior Member
Junior Member
Posts: 75
Joined: 2005-02-09, 04:38 UTC

Post by *chunwaihome »

majkinetor
create batch script for the Start menu or crate AutoHotkey script
Do u mind tell more details how to create batch script or post autohotkey script here :lol:
User avatar
majkinetor
Senior Member
Senior Member
Posts: 369
Joined: 2005-11-20, 10:36 UTC
Location: Belgrade, Serbia
Contact:

Post by *majkinetor »

I can.

I didn't work much with AH scripts but I guess this can be a good start.

About batch script (it goes something like this, I didn't tested it, since I heave to travel in 20 minutes, however this is general procedure)

Create batch script myCopy.bat and add it to Start menu:
Command = myCopy.bat
Param = %L %t (file with selection, target path)

myCopy.bat:
set IN="%~1"
set OUT ="%~2"

for /F "delims=" %i in ('type %IN%') do (
changetime %TIME%
copy %%i %OUT%
)


SInce win doesn't heave time stamp changer in command prompt that I am aware of (changetime in code above), U must use some 3th party tool like : http://www.pc-tools.net/files/win32/freeware/stmp3211.zip or see complete page: http://www.pc-tools.net/win32/


If you still can't do it... I will do it for you after hollidays.
We are not doing this just for the money.
We are doing it for sh*t load of money.
 
 
r-moth.com
r-moth.deviantart.com
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3864
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

How i convert the file date when i copy/move it to at that time?
Do you copy the file from your local harddisk to :

- another local disk
- a network share
- a FTP server ?

This is important, because the behaviour is different ...
#5767 Personal license
User avatar
chunwaihome
Junior Member
Junior Member
Posts: 75
Joined: 2005-02-09, 04:38 UTC

Post by *chunwaihome »

sqa_wizard wrote:Do you copy the file from your local harddisk to :

- another local disk
- a network share
- a FTP server ?


local hardisk
User avatar
karlchen
Power Member
Power Member
Posts: 4603
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

In this case filedates and filetimes should not be changed at all if you copy or move them with TC (just like with Explorer).

If I copy or move files between local drives and network shares, filedates and filetimes do not change. (And they are not supposed to. - But there have been reports that it may happen if a process on the network share blocks and keeps TC from restoring the original filedates and filetimes.)

Only if you transfer files between local drives and an FTP server, filedates and filtetimes may change.
Yet, if you are downloading from an FTP server, you can tell TC to keep the original filedates and filetimes as reported by the FTP server.

So definitely, when copying or moving on local disks, filedates and filetimes must not change.

Could some background software be blocking the files for a certain period of time? E.g. an AV software checking the files? (Though I never experienced such a behaviour with KAV.)

Or do I misunderstand your first message? I.e. do you really want filedates and filetimes to change on copy/move? I thought you were complaining that they did and asking for a way to reset them to the original values.

Karl
MX Linux 21.3 64-bit xfce, Total Commander 10.52 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
User avatar
majkinetor
Senior Member
Senior Member
Posts: 369
Joined: 2005-11-20, 10:36 UTC
Location: Belgrade, Serbia
Contact:

Post by *majkinetor »

U misunderstood Karl !
We are not doing this just for the money.
We are doing it for sh*t load of money.
 
 
r-moth.com
r-moth.deviantart.com
User avatar
Vochomurka
Power Member
Power Member
Posts: 814
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka »

Single user license #329241
PowerPro scripts for Total Commander
Post Reply