Synchronize as administrator

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
AndrewCreator
Member
Member
Posts: 122
Joined: 2011-10-10, 23:25 UTC

Synchronize as administrator

Post by *AndrewCreator »

It would be nice to be able to synchronize dirs as administrator. Nowadays trying to synchronize folder I receive a message:

Error - Synchronize only supports the following combinations:
directory<->directory
directory<->zip archive
directory<->ftp server
zip archive<->zip archive (compare only)
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6489
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Synchronize as administrator

Post by *Horst.Epp »

AndrewCreator wrote:It would be nice to be able to synchronize dirs as administrator. Nowadays trying to synchronize folder I receive a message:

Error - Synchronize only supports the following combinations:
directory<->directory
directory<->zip archive
directory<->ftp server
zip archive<->zip archive (compare only)
Not confirmed for TC 8.51b1 x64 under Windows 7 x64 Ultimate
No problems to synchronize as administrator

What TC version you are using and what do you want to sync ?
AndrewCreator
Member
Member
Posts: 122
Joined: 2011-10-10, 23:25 UTC

Post by *AndrewCreator »

Oh, it seems, I forgot to mention that TC should be run under restricted user.
User avatar
petermad
Power Member
Power Member
Posts: 14807
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I have no problems running Synchronize under restricted user running TC either as administrator or as restricted user.

I dont get the described error message. What kind of folders are you trying to Synchronize?
Last edited by petermad on 2014-03-03, 17:15 UTC, edited 1 time in total.
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
AndrewCreator
Member
Member
Posts: 122
Joined: 2011-10-10, 23:25 UTC

Post by *AndrewCreator »

Here are the steps to reproduce:

Let A to be a folder where only administrator has access.
  1. Run TC as restricted user.
  2. Enter A as administrator.
  3. Try to synchronize folders.
User avatar
karlchen
Power Member
Power Member
Posts: 4603
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

It is a well-know limitation of tcmadmin,exe that it does not support running all file operations "As Administrator" which T.C. can perform.

Workaround:
Although Windows users tend to forget so, running several instances of the same programme is a legitimate action on Windows.
Making use of this frequently ignored fact, we create a button in the T.C. button bar which launches this commandline

Code: Select all

*"%COMMANDER_EXE%" /N
et voilà, we are able to use "synchronize folders" with full administrative privileges without problems (and a lot of other actions as well).
If you want to restrict this elevated T.C. instance to synchronizing folders only you might extend the used commandline accordingly:

Code: Select all

*"%COMMANDER_EXE%" /N /S=S
and put

Code: Select all

%P %T
in the parameter field.

Karl
MX Linux 21.3 64-bit xfce, Total Commander 10.52 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
User avatar
petermad
Power Member
Power Member
Posts: 14807
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Let A to be a folder where only administrator has access.

Run TC as restricted user.
Enter A as administrator.
Try to synchronize folders.
Aha, now I could reproduce it.
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: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Currently only writing to protected directories is supported by the sync tool, e.g. to Program Files. Reading directories which requires admin rights is not supported.
Author of Total Commander
https://www.ghisler.com
nice
Junior Member
Junior Member
Posts: 84
Joined: 2018-03-12, 23:58 UTC

Re: Synchronize as administrator

Post by *nice »

Not fixed?

It can "Compare" folder, but doesn't display any files, and not even displays an error message, so one may think the folder is empty.

Should be moved to "Bugs" ? !
nice
Junior Member
Junior Member
Posts: 84
Joined: 2018-03-12, 23:58 UTC

Re: Synchronize as administrator

Post by *nice »

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

Re: Synchronize as administrator

Post by *ghisler(Author) »

Sorry, currently it's not planned to support it.
Author of Total Commander
https://www.ghisler.com
Post Reply