Page 1 of 1

New command line switch equal to explorer.exe /select

Posted: 17 Mar 2016 14:18
by reyaz
I'd like XYplorer to be able to select files and folders, when requested through command line switch.

Here are key differences between the proposed feature and /path switch:
1. When asked to open a subfolder inside a folder, /path makes XYplorer just open the subfolder, while /select opens the folder and selects the subfolder.
2. /path currently has certain issues with selecting objects (perhaps this is intentional). In most cases, XYplorer highlights the object instead of putting the selection on it. The behavior depends on what path was last opened in XYplorer, and whenever or not the asked path is already opened in any tab. /select should always select the object.

From what it looks like to me, it should be easy to implement this.

My previous thread about this feature (with more details): http://www.xyplorer.com/xyfc/viewtopic.php?f=3&t=15578
Article @ Microsoft: https://support.microsoft.com/en-us/kb/130510

Re: New command line switch equal to explorer.exe /select

Posted: 30 May 2016 18:43
by reyaz
I'd like developer to consider this feature, in case it was somehow missed. The alternative solution kindly provided by highend in the mentioned thread has certain limitations that prevent it from correctly working with all files.

Re: New command line switch equal to explorer.exe /select

Posted: 31 May 2016 11:44
by admin
It was a bug. Next beta should work as expected. No new switch needed.

Re: New command line switch equal to explorer.exe /select

Posted: 02 Jun 2016 16:41
by reyaz
Thanks for reply. Do you mean the problem with highlighting?

And what about subfolder situation?
1. When asked to open a subfolder inside a folder, /path makes XYplorer just open the subfolder, while /select opens the folder and selects the subfolder.

Re: New command line switch equal to explorer.exe /select

Posted: 02 Jun 2016 17:52
by admin
reyaz wrote:And what about subfolder situation?
1. When asked to open a subfolder inside a folder, /path makes XYplorer just open the subfolder, while /select opens the folder and selects the subfolder.
What about this (the final slash makes the difference):

C:\Sub
-> go to C:\, select Sub

C:\Sub\
-> go to C:\Sub\

Re: New command line switch equal to explorer.exe /select

Posted: 05 Jun 2016 10:20
by admin
That wasn't a good idea. Next version will have the /select switch:

Code: Select all

    + Command Line: Added switch /select. Works similar to /path but with 
      /select the parent folder is opened in the folder tree and the item is 
      select in the file list, no matter whether it's a folder or a file.
      - This will go to "E:\Test" in the tree, and select "Sub" in the file list:
        XYplorer.exe /select=E:\Test\Sub
      - These will go to "E:\Test\Sub" in the tree:
        XYplorer.exe /path=E:\Test\Sub
        XYplorer.exe E:\Test\Sub