Copy NTFS perm: Options button changes unknown option

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
white
Power Member
Power Member
Posts: 6015
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Copy NTFS perm: Options button changes unknown option

Post by *white »

* Start Total Commander with new wincmd.ini file
* Select menu option Commands/Background Transfer Manager
* Click Pause button in the Background Transfer Manager
* Select a file and press F5 (Copy)
* Enable Copy NTFS permissions option
* Press F2
* Select a file and press F5 (Copy)
* Enable Copy NTFS permissions option
* Click the Options button
* Press F2

Look at the copyflags lines in the Background Transfer Manager.

copyflags:1081344 (without advanced options visible in copy dialog)
copyflags:1048576 (with advanced options visible) (32768 less)

I know when advanced options are visible, options in wincmd.ini don't apply and you have to explicitly enable options. But there doesn't seem to be a combination of options that results in the copyflags value of 1081344.

In other words: A certain default option is disabled when the Options button is clicked, but I don't know which option.

Or in other words: What's the difference between copying with copyflags:1081344 and copying with copyflags:1048576?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50923
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

32768 is the option "unchanged". It means that the user didn't choose anything in the "options" section. Why is this important? It's about overwriting:
For example, the user starts a background operation. When a file exists in the target, the user is asked what he wants to do. He chooses "Overwrite all".

Now there are two cases when he adds more files to the list:
1. He adds them without opening "Options" section. In this case, TC has to keep the overwrite option the user has chosen (overwrite all)

2. He adds them with opened "Options" section. Now there is a combobox where the user can choose what to do in case of an existing file. For example, if he chooses "Skip all", we need to tell the BTM about it.

So when copyflags contains 32768, the flags are ignored except for the NTFS option.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 6015
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

I understand. Thanks for the explanation.
Post Reply