Hello, today, 6 years after this original post I am looking for this very same 'touch' feature.
Idea is to select files and directories within TC and then with a single click set the timestamp of theese selected items to the current date.
Would there be a new way to this today ?
Thanks.
SetAttrib date to 'Current' in a single click?
Moderators: white, Hacker, petermad, Stefan2
This .bat file of MVV works perfectly for selected files:
(I call it "SetAttrib_date-to-Current_for-files.bat")
... with this button ...
Regards
Karl
TC 9.0a - 32 bit + 64 bit, Windows 10 Pro x64 Version 1607 (Build 14393.693)
(I call it "SetAttrib_date-to-Current_for-files.bat")
Code: Select all
@echo off
if -%1==- echo Parameters: "%%WL"&pause &goto :EOF
if -%1==-go goto do_work
for /f "usebackq delims=" %%f in (`type %1`) do call %0 go "%%f" %2
goto :EOF
:do_work
%COMMANDER_PATH%\Tools\UnxUtils\TOUCH_Dateiattribute\touch.exe %2
Code: Select all
TOTALCMD#BAR#DATA
%Commander_Path%\Tools\UnxUtils\TOUCH_Dateiattribute\SetAttrib_date-to-Current_for-files.bat
%WL
WCMICONS.DLL,33
touch - automatically change Date/Time to current for selected files
%Commander_Path%\Tools\UnxUtils\TOUCH_Dateiattribute\
-1
Karl
TC 9.0a - 32 bit + 64 bit, Windows 10 Pro x64 Version 1607 (Build 14393.693)