Deleting file within Sync-Tool if the path is given via %COMMANDER_INI%\..\

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
JOUBE
Power Member
Power Member
Posts: 1477
Joined: 2004-07-08, 08:58 UTC

Deleting file within Sync-Tool if the path is given via %COMMANDER_INI%\..\

Post by *JOUBE »

Deleting file within Sync-Tool by right clicking -> delete is not possible, if the path is given via %COMMANDER_INI%\..\

See this suggestion: [Tc11] Suggestion: COMMANDER_INI_PATH

Joube
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Deleting file within Sync-Tool if the path is given via %COMMANDER_INI%\..\

Post by *petermad »

Not confirmed (Tested with TC 11.01rc2 32bit and 64bit on Windows 7)

See: https://tcmd.madsenworld.dk/syncdelincomini.mp4

Maybe your file was locked by another program/process?
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
JOUBE
Power Member
Power Member
Posts: 1477
Joined: 2004-07-08, 08:58 UTC

Re: Deleting file within Sync-Tool if the path is given via %COMMANDER_INI%\..\

Post by *JOUBE »

petermad wrote: 2023-08-28, 11:13 UTC Not confirmed (Tested with TC 11.01rc2 32bit and 64bit on Windows 7)
Try this please:
- cm_filesync (all next steps within filesync module)
- left: %commander_ini%\..\
- right:a_path (with a copy of wincmd.ini in it)
- Compare
- Edit left wincmd.ini and change something in it.
- Compare
- double click wincmd.ini s and within file compare change the changes back.
- Compare
- now a wincmd.bak is seen on the left side
- try to delete this wincmd.bak file
- Compare

By the way:
with which tool do you made the video?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Deleting file within Sync-Tool if the path is given via %COMMANDER_INI%\..\

Post by *ghisler(Author) »

I have tried it: It looks like the recycle bin doesn't like these kinds of paths, but deleting directly via Shift+click on "Delete left" works fine.
Postponed to a later version.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Deleting file within Sync-Tool if the path is given via %COMMANDER_INI%\..\

Post by *petermad »

That could be it - I have the recycle bin disabled System-wise

2JOUBE
with which tool do you made the video?
https://www.zdsoft.com/
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
JOUBE
Power Member
Power Member
Posts: 1477
Joined: 2004-07-08, 08:58 UTC

Re: Deleting file within Sync-Tool if the path is given via %COMMANDER_INI%\..\

Post by *JOUBE »

petermad wrote: 2023-08-28, 15:02 UTC That could be it - I have the recycle bin disabled System-wise

2JOUBE
with which tool do you made the video?
https://www.zdsoft.com/
Thanks
JOUBE
Power Member
Power Member
Posts: 1477
Joined: 2004-07-08, 08:58 UTC

Re: Deleting file within Sync-Tool if the path is given via %COMMANDER_INI%\..\

Post by *JOUBE »

ghisler(Author) wrote: 2023-08-28, 13:49 UTCPostponed to a later version.
I just marked it as a bug for completeness. But I think, that doesn't have to be changed at all and I would move it to the "will not be changed" forum, because there are umpteen other ways of deleting such file.

Joube
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Deleting file within Sync-Tool if the path is given via %COMMANDER_INI%\..\

Post by *ghisler(Author) »

I think, that doesn't have to be changed at all
No, it's better to resolve the parent dir references ".." when starting the comparison. I already have such a function to handle archives with such references, so they can't write above the target directory.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Deleting file within Sync-Tool if the path is given via %COMMANDER_INI%\..\

Post by *petermad »

I can confirm the bug in TC 11.01rc2 when enabling and deleting to the Recycle bin.

history.txt wrote:29.08.23 Fixed: Synchronize dirs: Resolve parent dir references \..\ when starting the comparison, because some functions like deleting to recycle bin fail with such paths (32/64)
Confirmed fixed in TC 11.01rc3 :-)
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
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Deleting file within Sync-Tool if the path is given via %COMMANDER_INI%\..\

Post by *petermad »

Moderator message from: petermad » 2023-08-29, 18:40 UTC

Moved from "TC11.x bug reports (English)" to "TC Fixed bugs"
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
JOUBE
Power Member
Power Member
Posts: 1477
Joined: 2004-07-08, 08:58 UTC

Re: Deleting file within Sync-Tool if the path is given via %COMMANDER_INI%\..\

Post by *JOUBE »

Yes, fixed in Tc11.01rc3.

No chance for 'COMMANDER_INI_PATH' ?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Deleting file within Sync-Tool if the path is given via %COMMANDER_INI%\..\

Post by *ghisler(Author) »

Maybe in a later version, 11.01 is for bug fixes, sorry.
Author of Total Commander
https://www.ghisler.com
Post Reply