cm_Exit 1 does not work
Moderators: Hacker, petermad, Stefan2, white
cm_Exit 1 does not work
Version 10.52. TC is launched as Administrator. cm_Exit 1 restarts TC from the user.
Versions 11.03, 11.50RC4. cm_Exit 1 restarts TC as Administrator. Is this a glitch? Or have the cm_Exit command rules changed? How to restart TC as a user?
Versions 11.03, 11.50RC4. cm_Exit 1 restarts TC as Administrator. Is this a glitch? Or have the cm_Exit command rules changed? How to restart TC as a user?
Re: cm_Exit 1 does not work
Hi,
This is how it works here:
Windows 11 Pro (x64) Version 24H2 (OS Build 26100.2605) - 2024-12-10 | TC 11.50RC4 x64/x86
This is how it works here:
Code: Select all
TC as user -> cm_exit 1 -> Exit and restart Total Commander as user
TC as Admin -> cm_exit 1 -> Exit and restart Total Commander as Admin
Windows 11 Pro (x64) Version 24H2 (OS Build 26100.2605) - 2024-12-10 | TC 11.50RC4 x64/x86
Re: cm_Exit 1 does not work
Yes. But at 10.52 it worked as it should:
[img]https://i.ibb.co/JnVr2yr/image.gif[/img]
[img]https://i.ibb.co/5svBPPS/2024-12-30-105230.png[/img]
How can I restart TC as a user now?
Re: cm_Exit 1 does not work
I updated 10.52 to 11.50RC4 and everything works. In another assembly there is a problem on my part. I'll look.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: cm_Exit 1 does not work
Not confirmed, I have just tried it. There is no official way to launch a program as normal user from a program running as administrator, only the reverse. However, you can use Explorer to re-open Total Commander as a normal user:Version 10.52. TC is launched as Administrator. cm_Exit 1 restarts TC from the user.
"%WINDIR%\explorer.exe" "%commander_exe%"
Put this in an internal command, e.g. em_normaluser, and then combine it with cm_exit:
em_normaluser,cm_exit
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: cm_Exit 1 does not work
The problem is very interesting. As you can see, I posted a gif above. On the old build, I restart from Administrator mode to User mode. There is assembly 10.52. But I updated it to 11.50RC4 and everything still works. Now my build has changed a lot. And this trick no longer works. I will figure out why this happens.
Re: cm_Exit 1 does not work
I figured it out. In the old build I have a special plugin for lowering privileges. Because of this, with cm_Exit 1, TC reboots from the user.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: cm_Exit 1 does not work
Interesting, which plugin was that?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: cm_Exit 1 does not work
The description is in Russian, but Google can easily translate it https://www.dropbox.com/scl/fi/2q5mgdepcxjig306liaot/cm_Exit.7z?rlkey=cmhp6u58w49linmpvydjq1j0x&dl=1
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: cm_Exit 1 does not work
Thanks, so the plugin is indeed for switching from administrator mode to normal mode:
Solves the problem of switching from administrator mode to standard mode by command cm_Exit n (n is not a multiple of 4) plus saves the parent in the process tree.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: cm_Exit 1 does not work
Enjoy it for your health. This is not my plugin. He doesn't post it anywhere. A good man wrote it for me when we were discussing the topic of privilege. I didn't even ask him about it. Please note that you can put a bat file nearby, which will be executed when TC exits/reboots.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: cm_Exit 1 does not work
Or just use my solution posted above:
viewtopic.php?p=466186#p466186
viewtopic.php?p=466186#p466186
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: cm_Exit 1 does not work
Yes, this is also a working method. I've already tried it.ghisler(Author) wrote: 2025-01-02, 08:15 UTC Or just use my solution posted above:
viewtopic.php?p=466186#p466186