Opening a new instance of TC with /O from an application with other rights

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48074
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

Post by *ghisler(Author) »

Thanks, I will fix the help. It's correct in history.txt, though...
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2293
Joined: 2020-01-18, 04:03 UTC

Re: Opening a new instance of TC with /O from an application with other rights

Post by *Fla$her »

2ghisler(Author)
Help wrote:/O 0 Never open a new instance in any case. If none is running, do nothing.
Please fix it! Disabling the launch of the first instance was not requested.
It's necessary that TC from other programs like ZxM/USR is opened for the first time!
You can add /O1 if you don't want to change the behavior for /O0.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48074
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

Post by *ghisler(Author) »

/O0 means "Never open a new instance in any case, and that's exactly what it does.
Why not just use /O instead?
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2293
Joined: 2020-01-18, 04:03 UTC

Re: Opening a new instance of TC with /O from an application with other rights

Post by *Fla$her »

2ghisler(Author)
The essence of the request was not to open the second instance, etc. I wouldn't interpret the new as the original (first), since the new must be preceded by some existing ("old").
The second instance will be opened with /O, but only one needs to be opened — the first one.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48074
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

Post by *ghisler(Author) »

Sorry, I don't understand your explanation. Maybe you can give an example?
Here is how it works now:
/O
TC already running -> path is opened in that instance
TC not running -> new instance is opened with path
/O0
TC already running -> path is opened in that instance
TC not running -> nothing happens
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2293
Joined: 2020-01-18, 04:03 UTC

Re: Opening a new instance of TC with /O from an application with other rights

Post by *Fla$her »

ghisler(Author) wrote: 2023-10-04, 12:36 UTC Maybe you can give an example?
/O1
TC already running -> path is opened in that instance
TC not running -> only the first instance is started and the path is opened
ghisler(Author) wrote: 2023-10-04, 12:36 UTC Here is how it works now:
/O
TC already running -> path is opened in that instance
You forgot to specify the main problem — when running with different rights, a new instance will open.
ghisler(Author) wrote: 2023-10-04, 12:36 UTC /O0
TC already running -> path is opened in that instance
Again, the new instance does not start if the first one is started with different rights.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48074
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

Post by *ghisler(Author) »

So your report is about instances with different rights? You can't pass paths to instances with higher rights because Windows doesn't allow it.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2293
Joined: 2020-01-18, 04:03 UTC

Re: Opening a new instance of TC with /O from an application with other rights

Post by *Fla$her »

ghisler(Author) wrote: 2023-10-05, 09:01 UTC You can't pass paths to instances with higher rights
I didn't understand why to pass paths to existing instances if the request concerns the creation of a new first instance (with the appropriate command line)?
Overquoting is evil! 👎
Fla$her
Power Member
Power Member
Posts: 2293
Joined: 2020-01-18, 04:03 UTC

Re: Opening a new instance of TC with /O from an application with other rights

Post by *Fla$her »

2ghisler(Author)
Will you answer my question?
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48074
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

Post by *ghisler(Author) »

Sorry but I still don't understand what your point is.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2293
Joined: 2020-01-18, 04:03 UTC

Re: Opening a new instance of TC with /O from an application with other rights

Post by *Fla$her »

You asked me to give an example. I brought it by analogy with yours.
Fla$her wrote: 2023-10-04, 12:45 UTC
ghisler(Author) wrote: 2023-10-04, 12:36 UTC Maybe you can give an example?
/O1
TC already running -> path is opened in that instance
TC not running -> only the first instance is started and the path is opened
What exactly is unclear in this example?
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48074
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

Post by *ghisler(Author) »

But that's exactly what /O1 already does!
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2293
Joined: 2020-01-18, 04:03 UTC

Re: Opening a new instance of TC with /O from an application with other rights

Post by *Fla$her »

And in this case, the second instance will not open if the level of rights doesn't match?
Overquoting is evil! 👎
Post Reply