Single Instance ?
-
gbjennings
- Posts: 13
- Joined: 23 Jun 2006 19:04
- Location: Charlotte, NC USA
- Contact:
Single Instance ?
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.
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
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.
-
admin
- Site Admin
- Posts: 65246
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
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?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.
-
gbjennings
- Posts: 13
- Joined: 23 Jun 2006 19:04
- Location: Charlotte, NC USA
- Contact:
THANKS ! Now a New Challenge
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.
-
admin
- Site Admin
- Posts: 65246
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: THANKS ! Now a New Challenge
Yep, the 2nd instance sends just the location to the first instance, not any Visual Filters.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.
-
gbjennings
- Posts: 13
- Joined: 23 Jun 2006 19:04
- Location: Charlotte, NC USA
- Contact:
THANKS !
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 !
XYplorer Beta Club