Single Instance

Features wanted...
Post Reply
phatmankerr
Posts: 186
Joined: 26 Dec 2005 19:35

Single Instance

Post by phatmankerr »

Any chance of having an option to force a single instance.

Just I use an app called Locate - which can be setup to use XYplorer in place of Explorer. Unfortunately every time I open a folder via Locate in opens a new instance of XYPlorer (would rather just have a new tab).

Thanks

Phat

admin
Site Admin
Posts: 66305
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Single Instance

Post by admin »

phatmankerr wrote:Any chance of having an option to force a single instance.
Yep, working on it. However, as you know, XY's caption is changing all the time to current folder --> my problem: how can I find the window without knowing the current caption?? Helping ideas appreciated...

EDIT: got it: EnumWindows ...

admin
Site Admin
Posts: 66305
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Single Instance

Post by admin »

phatmankerr wrote:Any chance of having an option to force a single instance.
OK, success! Check next upload...

phatmankerr
Posts: 186
Joined: 26 Dec 2005 19:35

Single Instance

Post by phatmankerr »

Thanks mate, with the check open tabs update that's 2 for 2.

Appreciated :D .

Phat

phatmankerr
Posts: 186
Joined: 26 Dec 2005 19:35

Single Instance

Post by phatmankerr »

How does this actually work, is it an option ? Just tested and it still opens a new instance of XY ?

Phat

admin
Site Admin
Posts: 66305
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Single Instance

Post by admin »

phatmankerr wrote:How does this actually work, is it an option ? Just tested and it still opens a new instance of XY ?
It is not optional but always active:

Code: Select all

    + If a new instance of XY is loaded with a startpath command line 
      parameter, this path is opened in a new foreground tab of the 
      previous instance instead of loading the new instance. Of these 
      three possible command line forms...
        XYplorer.exe
        XYplorer.exe "mystartpath"  [quotes optional]
        XYplorer.exe /ini="my ini file" "mystartpath" [idem]
      ... only the second will trigger the above behavior. The other 
      will load a 2nd instance.

phatmankerr
Posts: 186
Joined: 26 Dec 2005 19:35

Excellent !

Post by phatmankerr »

Aaah !

Works great.

Cheers

Phat

Post Reply