[TC 11.03rc5] Parameter /H0 has no effect when renaming file with cm_RenMov

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

[TC 11.03rc5] Parameter /H0 has no effect when renaming file with cm_RenMov

Post by *petermad »

I have made this button for prepending the name of the file under the cursor with current date and time:

Code: Select all

TOTALCMD#BAR#DATA
cm_RenMov
/GH0T="%|$DATE:Y-M-D_h.m.s|_%Q%N"
WCMICONS.DLL,32
Prepend name of the file under the cursor with current date and time
Using the H0 does not ask for permission to overwrite system files - is that by design?

I realize that renaming with Shift+F6 or with F6 with identical target and source directories, does not ask either, but maybe it would be a good idea when using /H0 - especially combined with /G
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.03rc5] Parameter /H0 has no effect when renaming file with cm_RenMov

Post by *ghisler(Author) »

H0 is currently ignored for hidden files when you uncheck the option
Get confirmation before: Overwriting/Deleting hidden/system files (in Configuration - Options - Misc).
H0 is also ignored for read only files when you uncheck the option
Get confirmation before: Overwriting/Deleting read-only files.

The idea is that the user configures for which of these attributes (read only and or hidden/system) he wants a confirmation, and then enables or disables it via /H0 or /H1. Currently it's not possible to enable both confirmations separately.

We would either need more values for the /H parameter, or separate parameters for hidden/system and read only.

I think it's best to leave it as it is for now, and add a note to the help that H0 will not override the options set in Configuration - Options - Misc.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.03rc5] Parameter /H0 has no effect when renaming file with cm_RenMov

Post by *petermad »

I think it's best to leave it as it is for now, and add a note to the help that H0 will not override the options set in Configuration - Options - Misc.
That sound fine.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.03rc5] Parameter /H0 has no effect when renaming file with cm_RenMov

Post by *ghisler(Author) »

I have added a note to the help in RC6.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.03rc5] Parameter /H0 has no effect when renaming file with cm_RenMov

Post by *petermad »

Help wrote:Warning: H0 (warn if attribute present) will NOT re-enable confirmation if it was disabled in Configuration - Options - Misc for read only and/or hidden/system files.
Confirmed added to the Help of TC 11.03rc6 :-)

Moderator message from: petermad » 2024-02-14, 18:49 UTC

Moved to "Total Commander (English)" from "TC11.x bug reports (English)"
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply