Opening a new instance of TC with /O from an application with other rights
Moderators: Hacker, petermad, Stefan2, white
- 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, for example /O:-1 would do the same as 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
Aren't you confused by the presence of the '-' sign in front? Somewhat unusual for a parameter.
Overquoting is evil! 👎
Re: Opening a new instance of TC with /O from an application with other rights
2Fla$her
No, he means it can be any value of the ini setting OnlyOnce. So it can be any positive and negative number and zero.
No, he means it can be any value of the ini setting OnlyOnce. So it can be any positive and negative number and zero.
Re: Opening a new instance of TC with /O from an application with other rights
2white
I got that there will be several values, one of which is with a minus sign, which is confusing.
I got that there will be several values, one of which is with a minus sign, which is confusing.
Overquoting is evil! 👎
Re: Opening a new instance of TC with /O from an application with other rights
Well, don't look at me. I don't agree with any of itFla$her wrote: 2022-08-25, 21:15 UTC 2white
I got that there will be several values, one of which is with a minus sign, which is confusing.

The /N option was meant to create a new instance when it would otherwise (without the parameter) not be created.
The /O option was meant to prevent a new instance when it would otherwise (without the parameter) be created.
Passing paths is optional and passing paths to an already running TC is not unique for the /O parameter. It also happens without the parameter when only 1 instance of TC is allowed. The /O parameter was only meant to override the setting to create a new instance, thus preventing it and causing the paths to be passed to the running instance. This is how it is explained in the Help. This is how it worked before.
And this is how it was added in Windows Commander 3.50:
I still remember when these options were added and thought they were very cool options.Wiki - List of changes wrote: (16.08.97) Added: When only 1 instance, a second instance passes the command line (paths) to the previous instance
(16.08.97) Added: New command line switches: /O activates previous instance, /N creates multiple instances of Wincmd
But Ghisler changed it and his reasoning now is that the main purpose of /O is to pass paths to an already running instance of TC and to disregard the OnlyOnce setting completely. Its purpose is no longer to override the setting, but to completely ignore the setting and do its own thing.
This sounds more like an explanation of how he programmed it since TC version 7.55.
Re: Opening a new instance of TC with /O from an application with other rights
Exactly. Returning to this statementwhite wrote: 2022-08-26, 01:03 UTC Passing paths is optional and passing paths to an already running TC is not unique for the /O parameter.
, I forgot to point out the condition where the presence of paths is not mandatory for uncharacteristic behavior:ghisler(Author) wrote: 2022-08-25, 08:32 UTCBut the user does want to open these new directories! So the logical consequence is to open a new copy of TC with these paths.
That is, at a minimum, it is necessary to exclude the launch of the second instance in case of a lack of paths, regardless of the availability of new options.
10 years before the appearance of UAC, as a result of which these problems with elevating rights arose.

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
Exactly!10 years before the appearance of UAC, as a result of which these problems with elevating rights arose.
white words it as if I changed this deliberately to piss off people, but that isn't my intention. The main idea of /O is opening directories, if possible in an already running instance, otherwise in a new instance. It's not meant to prevent the launching of a second instance at all cost, that would need a new parameter.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- 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
I'm moving this thread to suggestions because the current behaviour is intentional and a new parameter is needed for what is wanted here (no new instance in any case).
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
2ghisler(Author)
OK. But do you agree with my previous thesis that the second instance without paths should no longer run?
And answer about the minus, please.
OK. But do you agree with my previous thesis that the second instance without paths should no longer run?
And answer about the minus, please.
Reaction.
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
Why do you find it funny now? First you request it than then you make fun of it? I don't understand what you want.
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


Answer the questions, please.
Overquoting is evil! 👎
Re: Opening a new instance of TC with /O from an application with other rights
Somewhere in this thread the discussions lost some simple facts and it cycles in a loop 

Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Re: Opening a new instance of TC with /O from an application with other rights
Am I right that everyone would be happy if TC would accept a new command line parameter (e.g. /O!) which would not open a new TC instance under any circumstance?
Roman
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Re: Opening a new instance of TC with /O from an application with other rights
Not sure about Horst.Epp, he somehow resisted it.

Overquoting is evil! 👎
Re: Opening a new instance of TC with /O from an application with other rights
I'm happy with the current implementation

So for me any additional switch is fine.
but for me its looks like the changes Christian suggested are still lead to endless discissions.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64