Open Explorer and Opus installation (normal/usb)

I create button to open current folder with Explorer.

%windir%\explorer.exe /n,/e,{s!}

In normal install, Explorer is open with current folder.
With USB install, nothing happen.
What’s wrong?

Also next button opens folder in Opus (usb install) too.

C:\Windows\explorer.exe C:\

I can't see any obvious reason why the first command would work on a HDD install but not a USB version, unless the difference is the computer and not the command. (e.g. If %windir% has a space in it. Or if you are trying from different folders on different machines, and the problem is to do with the folder path.)

Since the second command works everywhere, try changing each difference between it and the other command until it stops working, and that may provide the clue about where it is going wrong.

I am not sure it makes sense to combine /n and /e either.

If you look on the default toolbar, the command we use is:

Explorer.exe /e, {sourcepath$}

This is slightly better, and we'll be changing the default having noticed the path wasn't fully qualified:

"/windows\Explorer.exe" /e, {sourcepath$}

Look what’s happen after some test…

/windows\explorer.exe /e, {s}

USB : nothing happen
HDD : Explorer is open in current path

/windows\explorer.exe /e, {sourcepath$}

USB : Explorer is open in current path
HDD : Explorer is open in current path

/windows\explorer.exe /e, "C:\Windows" 

USB : C:\Windows is browse in Opus
HDD : Explorer is open in C:\Windows path

{s} and {sourcepath$} turn into the same thing (assuming they are being run from a lister, and the same folder both times) so those differences do not make sense to me.

Are you doing both on the same computer or different computers? Same versions of Windows?

Same version of Opus on HDD and USB? And are the both 32-bit or 64-bit?

What happens if you run Explorer from a Command Prompt without Opus being involved?

It does not make sense to me too. :wink:

I run the same command, with the same source folder, in the same computer on Windows 7 64-bit and same Opus version 11.8 64-bit.

If I run explorer.exe /e, "C:\Windows" in Win+R dialog.
USB : C:\Windows is open in Opus
HDD : C:\Windows is open in Explorer

If I run explorer.exe /e, "C:\Windows" in DOS prompt dialog.
USB : C:\Windows is open in Explorer
HDD : C:\Windows is open in Explorer

Have you enabled Explorer Replacement in the .ini file of the USB version? It's not on by default, but seems to be happening. Try disabling it if so.

Using the USB version on a computer that has the HDD version installed is also going to confuse things a lot, as the two versions will conflict with each other and may try to register their DLLs over the top of each other if you do things that require DLL registration (Explorer Replacement and UAC).

It's also easy to cause one version to be launched (or to open a window when it's already in the background) when you thought it would launch the other, which can confuse matters. Check the full exe path for the process in Task Manager to be sure of where dopus.exe is running from.

Following up on this, using 12.2.1. and the default DOpus button:

"/windows\Explorer.exe" /e, {sourcepath$}

Explorer simply opens to the Quick Access Libraries directory.

I've tried several other methods to open the file path in Explorer with no luck.

Ideas?

Have you tried different folders? e.g. What happens on C:\ ?

Same thing happens

What happens if you run this from a command prompt, without Opus being involved?

C:\Windows\explorer.exe /e, C:\


[quote="leo"]What happens if you run this from a command prompt, without Opus being involved?

C:\Windows\explorer.exe /e, C:\

200dpi_Clipboard Image.png[/quote]

That opens Windows Explorer, with focus on Local Disk (C:)

If you change your Opus button to run this, does it open C:\ or Quick Access?

"/windows\Explorer.exe" /e, C:\

[quote="leo"]If you change your Opus button to run this, does it open C:\ or Quick Access?

"/windows\Explorer.exe" /e, C:\

Quick Access

Rather odd... Does turning off Preferences / Launching Opus / Explorer Replacement make a difference?

This makes no difference.

I'm out of ideas, unless /windows in Opus on your system resolves to something other than C:\Windows.

I tried another profile with a basic DOpus setup. It worked fine.

When I login to my normal profile, the standard DOpus "Open in Explorer" button works the first time. It then defaults to Quick Access every time after that, regardless of folder I try. Logging out and logging back in corrects the issue for the first try, then reverts back to Quick Access again.

Still the case.

I misspoke. When first attempting to open in Windows Explorer, Windows explorer opens to the C:\ drive. Every attempt after that opens to Quick Access.

As a reminder, I've tried the following codes:

Explorer.exe /e, {sourcepath$}

Opens Quick Access

"/windows\Explorer.exe" /e, C:\

Opens C:\ drive the first time, then Quick Access every other time

"/windows\Explorer.exe /e", {sourcepath$}

"Cannot find "/windows\Explorer.exe /e"

""/windows\Explorer.exe" /e", {sourcepath$}

Doesn't open anything

"/windows\Explorer.exe" {sourcepath$}

Opens path in new lister

"/windows\Explorer.exe" /e {sourcepath$}

Opens Quick Access

It works in one profile, but not another. How do I validate /windows in Opus?

I'm still stuck and want to resolve this without creating an entirely new Windows profile, if at all possible.

I appreciate any help!

Is that also true when using a Command Prompt and not involving Opus at all?

When running the following from command prompt:

explorer.exe /e, C:\

Goes to the C:\ drive every time.