With reload - do you mean start TC from Explorer or from it's Deskop link?Fla$her wrote: 2022-08-23, 07:15 UTC 2petermad
Save Onlyonce=-1 in %COMMMANDER_INI% и and reload TC.
Opening a new instance of TC with /O from an application with other rights
Moderators: Hacker, petermad, Stefan2, white
Re: Opening a new instance of TC with /O from an application with other rights
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Opening a new instance of TC with /O from an application with other rights
2petermad
Just close it and run it with elevated rights (lnk + launch flag with admin rights, for example).
Don't forget about UseIniInProgramDir=7.
Just close it and run it with elevated rights (lnk + launch flag with admin rights, for example).
Don't forget about UseIniInProgramDir=7.
Overquoting is evil! 👎
Re: Opening a new instance of TC with /O from an application with other rights
2Fla$her
With this approach I can confirm that a second instance is opened.Save Onlyonce=-1 in %COMMMANDER_INI% и and reload TC.
Explorer must have user rights, and TC, in turn, must have elevated rights. Is this condition met?
After that, press Win+R and run C:\Test\TOTALCMD64.EXE /O
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Opening a new instance of TC with /O from an application with other rights
2petermad
Thanks for another bug confirmation. ) Let's wait for the author.
Thanks for another bug confirmation. ) Let's wait for the author.
Overquoting is evil! 👎
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Opening a new instance of TC with /O from an application with other rights
/O does not override the problem that elevated programs cannot receive messages from programs running with normal user rights. This is a Microsoft security measure, and I do not want to bypass it.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Opening a new instance of TC with /O from an application with other rights
That's OK, but what about /O causing an extra instance compared to not using it. That doesn't make sense.ghisler(Author) wrote: 2022-08-24, 06:49 UTC /O does not override the problem that elevated programs cannot receive messages from programs running with normal user rights. This is a Microsoft security measure, and I do not want to bypass it.
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Opening a new instance of TC with /O from an application with other rights
/O always opens a new instance when no instance is running yet. An elevated instance is ignored, so when no instance with normal rights is running, /O will open a new one.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Opening a new instance of TC with /O from an application with other rights
In that case running without /O also opens a new one. I was talking about when this isn't the case:ghisler(Author) wrote: 2022-08-24, 09:44 UTC /O always opens a new instance when no instance is running yet. An elevated instance is ignored, so when no instance with normal rights is running, /O will open a new one.
I was talking about when using "Onlyonce=-1" like described in this topic's first post.white wrote: 2022-08-24, 09:09 UTC That's OK, but what about /O causing an extra instance compared to not using it.
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Opening a new instance of TC with /O from an application with other rights
/O just overrides the OnlyOnce option. I don't understand what else you want to know.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Opening a new instance of TC with /O from an application with other rights
It was my understanding that the purpose of adding /O is to prevent another instance, so overriding the OnlyOnce=0 option. Not to force another instance.ghisler(Author) wrote: 2022-08-24, 10:04 UTC /O just overrides the OnlyOnce option. I don't understand what else you want to know.
Don't you think it's odd that the option /O (Only once) means no extra instance, but in another circumstance (OnlyOnce=-1) means force an extra instance?
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Opening a new instance of TC with /O from an application with other rights
No, /O doesn't just mean "no extra instance". From the help:
/O If Total Commander is already running, activate it and pass the path(s) in the command line to that instance (overrides the settings in the configuration dialog to have multiple windows).
So the switch is meant to pass parameters to an already running instance (if that exists). Otherwise it works just like without the switch.
/O If Total Commander is already running, activate it and pass the path(s) in the command line to that instance (overrides the settings in the configuration dialog to have multiple windows).
So the switch is meant to pass parameters to an already running instance (if that exists). Otherwise it works just like without the switch.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Opening a new instance of TC with /O from an application with other rights
Exactly, preventing another instance.ghisler(Author) wrote: 2022-08-24, 10:34 UTC So the switch is meant to pass parameters to an already running instance (if that exists).
You mean like with OnlyOnce=1?
Re: Opening a new instance of TC with /O from an application with other rights
Read all my recent messages, please. Otherwise, I got the feeling of a lack of feedback. I explained everything in detail.ghisler(Author) wrote: 2022-08-24, 06:49 UTC /O does not override the problem that elevated programs cannot receive messages from programs running with normal user rights. This is a Microsoft security measure, and I do not want to bypass it.
Overquoting is evil! 👎
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Opening a new instance of TC with /O from an application with other rights
Yes.You mean like with OnlyOnce=1?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Opening a new instance of TC with /O from an application with other rights
You misunderstood..