Single Instance ?
Posted: 31 Oct 2006 22:23
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.
Forum for XYplorer Users and Developers
https://www.xyplorer.com/xyfc/
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?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.
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.