Button parameter "%S1 |$DATE|" does not display the date

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
PiotrMPPL
Junior Member
Junior Member
Posts: 60
Joined: 2018-10-26, 07:04 UTC

Button parameter "%S1 |$DATE|" does not display the date

Post by *PiotrMPPL »

Hi

Button parameter "%S1 |$DATE|" does not display the date

Please help
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6970
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Button parameter "%S1 |$DATE|" does not display the date

Post by *Horst.Epp »

Use the correct form and it works
%|$DATE|
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.55 RC1 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
User avatar
white
Power Member
Power Member
Posts: 5789
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Button parameter "%S1 |$DATE|" does not display the date

Post by *white »

Horst.Epp wrote: 2023-08-07, 12:14 UTC Use the correct form and it works
%|$DATE|
He probably means quotes included and then it doesn't work.
Fla$her
Power Member
Power Member
Posts: 2997
Joined: 2020-01-18, 04:03 UTC

Re: Button parameter "%S1 |$DATE|" does not display the date

Post by *Fla$her »

The cursor is on the file "my file.txt".
After specifying in the field "Parameters:" ?"%Q%S1_%|$DATE|" the dialog shows "my file.txt_%|$DATE|" instead of "my file.txt_<yyyyMMddhhmmss>".

Move it here.
Overquoting is evil! 👎
PiotrMPPL
Junior Member
Junior Member
Posts: 60
Joined: 2018-10-26, 07:04 UTC

Re: Button parameter "%S1 |$DATE|" does not display the date

Post by *PiotrMPPL »

Button parameter "%S1 |$DATE|" does not display the date

Button parameter "%N |$DATE|" display the date
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Button parameter "%S1 |$DATE|" does not display the date

Post by *ghisler(Author) »

The special syntax "%S text" or "%Sn text" with 'n' a number can be used to append the same sub-string to each inserted name. Unfortunately it does not support any other placeholders, e.g. "%S1 %N" will insert a literal %N and not the name under the cursor. That's why "%S1 %|$DATE|" doesn't work either.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2997
Joined: 2020-01-18, 04:03 UTC

Re: Button parameter "%S1 |$DATE|" does not display the date

Post by *Fla$her »

2ghisler(Author)
You can give priority to the disclosure of environment variables, and only then the rest of the parameters with a percent sign. I think this is logical.
Overquoting is evil! 👎
Post Reply