Total Commander cannot copy wincmd.key to Totalcommander hom

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
wseifert
Junior Member
Junior Member
Posts: 13
Joined: 2009-07-28, 11:35 UTC
Contact:

Total Commander cannot copy wincmd.key to Totalcommander hom

Post by *wseifert »

Installed the new Windows 7 (7600.16385.090713-1255_x86fre_client_en-us_Retail_Ultimate-GRMCULFRER_EN_DVD) and installed Total Commander 7.5 Beta 7 under c:\Program Files\totalcmd it was not possible to copy the wincmd.key file into the totalcmd directory, even though Windows 7 UAC asked to copy as Administrator. It was possible to copy the file marking it with right mouse - copy and paste it to the destination directory (UAC asked also to copy as Administrator).
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No problem here. What are the permissions of the folder "Total Commander" for yourself and for user "Administrator"?

Btw, I have only the RC1, the final version isn't available for MSDN customers yet.
Author of Total Commander
https://www.ghisler.com
User avatar
wseifert
Junior Member
Junior Member
Posts: 13
Joined: 2009-07-28, 11:35 UTC
Contact:

Post by *wseifert »

Permissions:
Trustedinstaller - Special - This folder, subfolders and files
System - Full control - This folder, subfolders and files
Administrators (Group) - Full control - This folder, subfolders and files
Users (Group) - Read & Execute
CREATOR OWNER - Special - subfolders and files only

Win7 was fresh installed, user created during setup has default permissions. File wincmd.key location to copy from is a network share, the win7 workstation is not member of a domain, only workgroup. I had this issue also on Beta and RC1 release. It is not possible to copy the wincmd.key file with totalcmd using copy (F5). After pressing F5 a window pops up with Message "Access denied on file c:\program Files\totalcmd\WINCMD.KEY! Questions: Akip, Retry, Abort, Rename, As Administrator, All As Administrator. Only normal mark, copy & paste using windows explorer works (UAC still asks for permission ...).[/img]
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

File wincmd.key location to copy from is a network share
That explains it: TC starts tcmadmin.exe with admin rights to copy the file to the "forbidden" directory. The problem is that network shares are user-specific, so the admin does NOT have access to it. Tcmadmin uses CopyFileEx to copy the file, which fails with "access denied" both when it cannot read the source and when it cannot write to the target.

So what you need to do is copy the file to a writable directory first, and then move it from there to the "forbidden" directory.
Author of Total Commander
https://www.ghisler.com
Post Reply