change the file timestamp
Moderators: white, Hacker, petermad, Stefan2
- chunwaihome
- Junior Member
- Posts: 75
- Joined: 2005-02-09, 04:38 UTC
change the file timestamp
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
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
- majkinetor
- Senior Member
- Posts: 369
- Joined: 2005-11-20, 10:36 UTC
- Location: Belgrade, Serbia
- Contact:
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
We are doing it for sh*t load of money.
r-moth.com
r-moth.deviantart.com
- chunwaihome
- Junior Member
- Posts: 75
- Joined: 2005-02-09, 04:38 UTC
- majkinetor
- Senior Member
- Posts: 369
- Joined: 2005-11-20, 10:36 UTC
- Location: Belgrade, Serbia
- Contact:
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.
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
We are doing it for sh*t load of money.
r-moth.com
r-moth.deviantart.com
- sqa_wizard
- Power Member
- Posts: 3864
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
- chunwaihome
- Junior Member
- Posts: 75
- Joined: 2005-02-09, 04:38 UTC
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
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
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
- majkinetor
- Senior Member
- Posts: 369
- Joined: 2005-11-20, 10:36 UTC
- Location: Belgrade, Serbia
- Contact:
- Vochomurka
- Power Member
- Posts: 814
- Joined: 2005-09-14, 22:19 UTC
- Location: Russia
- Contact:
Single user license #329241
PowerPro scripts for Total Commander
PowerPro scripts for Total Commander