Page 1 of 1

Single Instance ?

Posted: 31 Oct 2006 22:23
by gbjennings
If there is a way to limit XYplorer to a single instance, I surely cannot find it. This would be a nice option. Thanks for listening.

Posted: 01 Nov 2006 02:23
by Creat
I just stumbled on this yesterday, for a totally different reason. This is a quote from the help-file about "command line switches":

Keeping a Single Instance
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
XYplorer.exe /ini=myini mystartpath
... only the second will trigger the above behavior. The other will load a second instance.

Posted: 01 Nov 2006 08:33
by admin
Creat wrote:I just stumbled on this yesterday, for a totally different reason. This is a quote from the help-file about "command line switches":

Keeping a Single Instance
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
XYplorer.exe /ini=myini mystartpath
... only the second will trigger the above behavior. The other will load a second instance.
So, gbjennings, you would like what to happen in case 1 (open XYplorer.exe without any parameters)? Simply put the old instance into the foreground?

THANKS ! Now a New Challenge

Posted: 01 Nov 2006 12:09
by gbjennings
I feel guilty that I did not see these command lines in the help file, but indeed this solved the 'single instance' problem. However, now there is a slightly different issue. When I 'accidentally' open XYplorer for the second time (now it does not start a second instance), suddenly now it does not seem to read my Visual Filter mask. I have !Recycle Bin and !desktop.ini in my Visual Filters, and indeed it is filtered the first time I open XY. Opening XY a second time, even though only a single instance is allowed, the filters are ignored and the Recycle Bin and desktop.ini are now visible.

Re: THANKS ! Now a New Challenge

Posted: 02 Nov 2006 09:02
by admin
gbjennings wrote:I feel guilty that I did not see these command lines in the help file, but indeed this solved the 'single instance' problem. However, now there is a slightly different issue. When I 'accidentally' open XYplorer for the second time (now it does not start a second instance), suddenly now it does not seem to read my Visual Filter mask. I have !Recycle Bin and !desktop.ini in my Visual Filters, and indeed it is filtered the first time I open XY. Opening XY a second time, even though only a single instance is allowed, the filters are ignored and the Recycle Bin and desktop.ini are now visible.
Yep, the 2nd instance sends just the location to the first instance, not any Visual Filters.

THANKS !

Posted: 02 Nov 2006 11:29
by gbjennings
OK. This is not a 'biggie.' The problem with MS' Windows Explorer is that when a second instance is opened (there is no way to limit it to a single instance), it changes the windows positioning, which gets written to the registry. XYplorer still solves that problem. THANKS !