Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Programmatically open folder in BetterExplorer #132

Open
Kristinita opened this issue Apr 18, 2020 · 4 comments
Open

Programmatically open folder in BetterExplorer #132

Kristinita opened this issue Apr 18, 2020 · 4 comments
Assignees
Labels
Feature Requests for new functionality question

Comments

@Kristinita
Copy link

1. Summary

I can't find, how I can programmatically (via command-line or script) open any Windows folder in BetterExplorer.

2. Argumentation

2.1. Common cause

Automation.

2.2. Details

I'm working on several projects. For each I have a separate workplace.

For each workplace I have specific set of opened folders. I want to write scripts, that, in particular, close all Better Explorer tabs/windows of first workplace, then open tabs/windows for new workplace. But I can't find, how I can do it; currently, I need manually open desired folders.

3. Expected behavior

For example, I have simple AutoHotkey script.

Run D:\KiraFolder
return

I run this script → default Windows File Explorer open D:\KiraFolder:

KiraFolder

It would be nice to have similar behavior for BetterExplorer.

4. Not helped

  1. I couldn't make BetterExplorer my default viewer:

    BetterExplorer default viewer

    Win+E open default Windows File Explorer for me.

  2. I couldn't find information about my problem in BetterExplorer options and issues for this repository. Also, I could't find any information about BetterExplorer command-line usage.

  3. I tried Google Search queries as “Windows 10 open folder in custom program” → no effect.

Thanks.

@DimitarCC
Copy link
Collaborator

Hello @Kristinita ,
Thank you for using Better Explorer. Let me answer to your questions one by one:

  1. How you can open a folder programmatically?
    Well is quite easy.... it works like this:
    "<Better Explorer instalation folder>\BetterExplorer.exe" <yourfolderpathhere>
    In that way it will open the desired folder in new non active tab in better explorer.
    Currently there is one small issue when you open it initially it doesnt load correct and you have to
    renavigate to it. On next folder however it works fine.

  2. How to set it as default?
    Well in latest version this is not possible since it causes too much problems with the OS. So this
    will be removed in later releases.

@DimitarCC DimitarCC added Feature Requests for new functionality question labels Apr 21, 2020
@DimitarCC DimitarCC self-assigned this Apr 21, 2020
@DimitarCC DimitarCC changed the title question/feature_request(usage): programmatically open folder in BetterExplorer Programmatically open folder in BetterExplorer Apr 21, 2020
@Kristinita
Copy link
Author

1. Summary

Currently there is one small issue when you open it initially it doesnt load correct and you have to renavigate to it. On next folder however it works fine.

Will this be fixed in the future releases?

2. Steps to reproduce

I created D:\KiraFolder folder with KiraFile.txt file, then D:\KiraSecondFolder folder with KiraSecond.txt file.

I clicked to arrows in BetterExplorer toolbar, that collapse all dropdown menus:

Collapse dropdown menus

I closed BetterExplorer → then in my command prompt:

D:\path\to\BetterExplorer.exe "D:\KiraFolder"
D:\path\to\BetterExplorer.exe "D:\KiraSecondFolder"

3. Expected behavior

Expected

Correct files in D:\KiraFolder and D:\KiraSecondFolder folders are displayed , dropdown menus are hidden.

4. Current behavior

Current behavior

4.1. Files appearance

No files in KiraFolder and KiraSecondFolder.

0 items  0 selected items

4.2. Dropdown menus

Not hidden. For example, I don't want show my Quick access folders on the streams. It would be nice, if BetterExplorer (as default Windows File Explorer) will remember, which dropdown menus are collapsed.

Thanks.

@Kristinita
Copy link
Author

How to set it as default? Well in latest version this is not possible since it causes too much problems with the OS. So this will be removed in later releases.

I am waiting for the next releases.

Thanks.

@DimitarCC
Copy link
Collaborator

@Kristinita
Ofcource the problem with opening of the folders will be fixed. I will look at it.
About the menus in the Tree.... well that is more difficult than looks. It needs a way to remember and the function to expand the tree item on navigation should be disabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Requests for new functionality question
Projects
None yet
Development

No branches or pull requests

2 participants