SetAttrib date to 'Current' in a single click?

English support forum

Moderators: white, Hacker, petermad, Stefan2

jcelle
Junior Member
Junior Member
Posts: 35
Joined: 2006-11-08, 14:42 UTC

Post by *jcelle »

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.
User avatar
tuska
Power Member
Power Member
Posts: 3764
Joined: 2007-05-21, 12:17 UTC

Post by *tuska »

This .bat file of MVV works perfectly for selected files:
(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
... with this button ...

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
Regards
Karl

TC 9.0a - 32 bit + 64 bit, Windows 10 Pro x64 Version 1607 (Build 14393.693)
Post Reply