Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Question

eShell opens explorer(desktop) instead of file explorer

May 16, 2019 3:32AM PDT

Hello everyone i have a problem.

After a user automatically logs in he get this screen, after that he needs to access some of the files, so he opens the task manager with keyboard shortcut ctrl + shift +e and goes to new task. In the pop up window he needs to input explorer so he could open the file manager, but instead he gets whole explorer opened with desktop and evrything else.

Best regards,

Dainius

Discussion is locked

- Collapse -
Answer
That's expected when
May 16, 2019 8:55AM PDT

If there is some damage to the OS or account where the desktop is not working correctly, then the first time Explorer is run your desktop and such will open. On the second run then you get a Windows File Explorer instance or window.

You mention eShell which I would have to google but if eShell replaced the desktop, then Windows would again do as I noted.

I see no bug or unexpected operation here.

- Collapse -
Re: eShell
May 16, 2019 9:27AM PDT

I googled eshell and found this:
"Eshell is a shell-like command interpreter implemented in Emacs Lisp. It invokes no external processes except for those requested by the user.".
More in https://www.gnu.org/software/emacs/manual/html_mono/eshell.html

I assume it runs in WSL (Windows Subsystem for Linux), but eShell being a shell, I would use its own commands to access files and not Windows Explorer.

This certainly needs more detail.

- Collapse -
I will try to eplain in another way
May 17, 2019 12:44AM PDT
- Collapse -
Re: explain
May 17, 2019 1:06AM PDT

It's more or less clear. My questions:
1. Why is Windows not activated?
2. Why does Windows open cmd.exe in stead of the desktop?
3. What's the relationship with eShell?

- Collapse -
That's the expected behavior.
May 17, 2019 1:07AM PDT

If the desktop is not showing, running Explorer will fire up the Windows Desktop as expected. Run Explorer a second time to get what you wanted in the first instance.

- Collapse -
I need it like it was in Windows 7
May 17, 2019 1:53AM PDT

Well you see in Windows 7 embedded it is opening file manager and you don't need any additional suffixes like explorer shell etc. So i am looking for a solution how can i type in explorer.exe or just explorer and it will open up for me explorer shell.

- Collapse -
Re: explorer
May 17, 2019 2:24AM PDT

Make a batchfile that does what you want and type the name of the batchfile. I think that by using the right "path" you can even call it explorer.bat and then typing explorer would be fine. But it's even easier if you call it, say, e.bat, so you only have to type e.

Or simply run that batchfile in stead of cmd.exe (you didn't yet explain how you did that) so the user doesn't have to type anything.

- Collapse -
Thank you for your help
May 19, 2019 11:13PM PDT

Thank you for you patience and your answers. I will try your method.

- Collapse -
Then you need to be creative.
May 17, 2019 8:31AM PDT

Since Windows is not under your control here you make a batch file to do what you want. You can break Windows if you replace explorer.exe so while that's an option I don't know how much you know about Windows.

From my view, nothing here is broken. Windows is doing exactly what (off the shelf) Windows does. As to Embedded versions, I am aware of those but for those you deploy as you see fit and work around Windows as you need.

Here you are DEMANDING you type explorer and get a specific response. All you need to do is change the command to be something else or some other app that does what you want.

- Collapse -
Re: access file
May 17, 2019 1:12AM PDT
- Collapse -
It is different system
May 17, 2019 1:52AM PDT

Well you see it is system for the self-checkout solution.
And i need to have as much as possible stock configuration(mainly self-checkout sofwtware and needed frameworks for it).
I found solutions like running:
explorer.exe shell:Personal
explorer.exe shell:MyComputerFolder
explorer.exe shell: AppData
explorer.exe shell: Common Start Menu
explorer.exe shell: Libraries
But they are not that i am looking for. I need to get explorer.exe shell result
by typing explorer.exe

- Collapse -
Kees e.bat is the easy fix.
May 17, 2019 8:50AM PDT

But if you DEMAND Windows 7 behavior you should call Microsoft to see if they offer a way.

Remember this is how Windows works so nothing is broken here. You want to change it so back to Microsoft when you don't get exactly what you want.

Here Kees has a great workaround. Plus it's less typing.

- Collapse -
I aggree with that.
May 19, 2019 11:12PM PDT

Thank you for you patience and your answers. I will try Kees_B method.