can i add change attribute button with settings ?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
giulia
Senior Member
Senior Member
Posts: 328
Joined: 2013-09-14, 05:33 UTC
Location: Europe

can i add change attribute button with settings ?

Post by *giulia »

hi

1)
can i add/create change attribute button with settings with current date everytime click on its without click always on current ?
a soft of automation

[img]https://i.postimg.cc/kgSbcyWY/2024-08-11-073733.jpg[/img]

2)
and create a change attribute button with a preset ?
[img]https://i.postimg.cc/c4ggxck1/2024-08-11-073907.jpg[/img]


thanks
love Total Commander , best file manager ever made
Fla$her
Power Member
Power Member
Posts: 2982
Joined: 2020-01-18, 04:03 UTC

Re: can i add change attribute button with settings ?

Post by *Fla$her »

1) OPENATTRIBUTES= +c
2) OPENATTRIBUTES= <Settings>

You can find out about this in the help by running the command:
hh.exe %COMMANDER_PATH%\TOTALCMD.CHM::options_setattr.htm
Overquoting is evil! 👎
giulia
Senior Member
Senior Member
Posts: 328
Joined: 2013-09-14, 05:33 UTC
Location: Europe

Re: can i add change attribute button with settings ?

Post by *giulia »

Fla$her wrote: 2024-08-11, 08:31 UTC 1) OPENATTRIBUTES= +c
2) OPENATTRIBUTES= <Settings>

You can find out about this in the help by running the command:
hh.exe %COMMANDER_PATH%\TOTALCMD.CHM::options_setattr.htm
hi
in short i have to create a button like this

Code: Select all

TOTALCMD#BAR#DATA
cm_SetAttrib

x:\tc\icons\Bokehlicia-Captiva-Clock.ico



502
and in parameters should i add
OPENATTRIBUTES= +c

Code: Select all

TOTALCMD#BAR#DATA
cm_SetAttrib
OPENATTRIBUTES=+c
x:\tc\icons\Bokehlicia-Captiva-Clock.ico



-1
the date is not the current date but the file date

and on a second button
OPENATTRIBUTES= <name of the preset>
with the < > doesn't work
with hh.exe %COMMANDER_PATH%\TOTALCMD.CHM::options_setattr.htm , i have found nothing
thanks
love Total Commander , best file manager ever made
User avatar
white
Power Member
Power Member
Posts: 5748
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: can i add change attribute button with settings ?

Post by *white »

giulia wrote: 2024-08-13, 08:12 UTC and in parameters should i add
OPENATTRIBUTES= +c
No, OPENATTRIBUTES is a command, use it instead of cm_SetAttrib.
Fla$her
Power Member
Power Member
Posts: 2982
Joined: 2020-01-18, 04:03 UTC

Re: can i add change attribute button with settings ?

Post by *Fla$her »

giulia wrote: 2024-08-13, 08:12 UTCTOTALCMD#BAR#DATA
cm_SetAttrib
OPENATTRIBUTES=+c
>>
TOTALCMD#BAR#DATA
OPENATTRIBUTES= +c

giulia wrote: 2024-08-13, 08:12 UTC the date is not the current date but the file date
You pointed it out yourself:
giulia wrote: 2024-08-11, 05:43 UTC can i add/create change attribute button with settings with current date ...

giulia wrote: 2024-08-13, 08:12 UTCwith the < > doesn't work
I specifically marked the angle brackets in gray so that you don't specify them. This is a template syntax.
giulia wrote: 2024-08-13, 08:12 UTCwith hh.exe %COMMANDER_PATH%\TOTALCMD.CHM::options_setattr.htm , i have found nothing
To do this, place the English help (from this archive) in the TC root folder.
Overquoting is evil! 👎
Post Reply