copying as admin (after UAC prompt) does not set file creation time

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
MartinK
Junior Member
Junior Member
Posts: 53
Joined: 2010-11-19, 20:21 UTC
Location: Brno, Czech Republic

copying as admin (after UAC prompt) does not set file creation time

Post by *MartinK »

In my WINCMD.ini is set "CopyAllTimes=1" and works well in normal mode. In administrator mode does not work at all.

It's not bug 9.5 but all previous versions.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: copying as admin (after UAC prompt) does not set file creation time

Post by *Horst.Epp »

MartinK wrote: 2019-11-29, 11:22 UTC In my WINCMD.ini is set "CopyAllTimes=1" and works well in normal mode. In administrator mode does not work at all.

It's not bug 9.5 but all previous versions.
If you run TC as Administraor it may have its own config file.
Only if you just use enhanced rights for TC it has the same environment and config file.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
MartinK
Junior Member
Junior Member
Posts: 53
Joined: 2010-11-19, 20:21 UTC
Location: Brno, Czech Republic

Re: copying as admin (after UAC prompt) does not set file creation time

Post by *MartinK »

I'm sorry, my English is very bad, i guess it was misunderstood.

1. Start TC as normal user, NOT as admin
2. Copy something for example to W:\WORK
3. Target (destination) file has correctly set all times
4. Copy something for example to C:\Program Files
5. TC says that access is denied and asks you if I want as administrator
6. After Windows UAC prompt for TCMADMIN.EXE (or TCMADM64.EXE) file is copied
7. Target (destination) file has correctly set modified date/time, but NOT creation date/time and last access date/time

I hope it's understandable now. Thanks. Martin
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: copying as admin (after UAC prompt) does not set file creation time

Post by *ghisler(Author) »

Copying as administrator does not currently support CopyAllTimes=1. It just calls CopyfileEx within tcmadmin.exe, and CopyfileEx ony copies the last write time.
Author of Total Commander
https://www.ghisler.com
Post Reply