# What commands need to register in Everything to open a search in Directory Opus?

**URL:** <https://resource.dopus.com/t/what-commands-need-to-register-in-everything-to-open-a-search-in-directory-opus/31073>\
**Category:** Help & Support\
**Created:** [January 5, 2019, 9:30am UTC](https://resource.dopus.com/t/what-commands-need-to-register-in-everything-to-open-a-search-in-directory-opus/31073 "2019-01-05T09:30:24Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johan](https://resource.dopus.com/letter_avatar_proxy/v4/letter/j/dec6dc/32.png) [@Johan](https://resource.dopus.com/u/Johan)\
**Post date:** [January 5, 2019, 9:30am UTC](https://resource.dopus.com/t/what-commands-need-to-register-in-everything-to-open-a-search-in-directory-opus/31073/1 "2019-01-05T09:30:25Z")

</div>

**Hello!**  
Everything in Windows Explorer works fine.

- With a double click on the path, it opens the path, highlighting the object.
- With a double click on the name of it (opens, unpacks, launches):

- if this folder opens it
- if it is an archive then unpack it
- If this is a video or text document, it opens
- if .exe then runs  
_The default settings are:_

1. Open (Folders)  
$exec("%1")

2. Open (Files)  
$exec("%1")

3. Open Path  
$openpath("%1")

4. Explore  
$exec("%SystemRoot%\explorer.exe" /n,/e,"%1")

5. Explore Path  
$exec("%SystemRoot%\explorer.exe" /n,/e,/select,"%1")  
 ![2019-01-05_115543](https://resource.dopus.com/uploads/default/original/3X/5/9/5989b08d3235e9de58c3afa1c65022c4600af1fa.png)  
Here's a video  
[https://resource.dopus.com/uploads/default/original/3X/1/6/16cc99d5338179d3a8c338417ed1965f40870202.mp4](https://resource.dopus.com/uploads/default/original/3X/1/6/16cc99d5338179d3a8c338417ed1965f40870202.mp4)  
**I made the following commands:**

6. Tools \> Options \> Context Menu \> Open (Folders) \> Command  
$exec("C:\Program Files\GPSoftware\Directory Opus\dopus.exe" "%1")

7. Tools \> Options \> Context Menu \> Open (Files) \> Command  
$exec("C:\Program Files\GPSoftware\Directory Opus\dopus.exe" "%1")

8. Tools \> Options \> Context Menu \> Open Path \> Command  
$exec("C:\Program Files\GPSoftware\Directory Opus\dopus.exe" "$parent(%1)")  
I tried these  
$exec("C:\Program Files\GPSoftware\Directory Opus\dopus.exe" "%1")  
$exec("C:\Program Files\GPSoftware\Directory Opus\dopus.exe" $parent("%1"))

But it does not work for me as in Windows Explorer (video above).  
With a double click on the path, it does not select the object  
With a double click on the name, not everything also works:

- folder opens and unpacks the archive
- .txt and .wmv for example does not start  
Here's a video  
[https://resource.dopus.com/uploads/default/original/3X/5/b/5bbc635a6a7690ec0ce999e1c9b773a28157cc0a.mp4](https://resource.dopus.com/uploads/default/original/3X/5/b/5bbc635a6a7690ec0ce999e1c9b773a28157cc0a.mp4)  
**Where exactly should I write commands and what commands to work like in Windows Explorer?**

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [January 5, 2019, 9:35am UTC](https://resource.dopus.com/t/what-commands-need-to-register-in-everything-to-open-a-search-in-directory-opus/31073/2 "2019-01-05T09:35:23Z")

</div>

Does this have what you need?

> [@SearchEverything: Getting Opus to work with Everything](https://resource.dopus.com/t/searcheverything-getting-opus-to-work-with-everything-v4-0/8894):
>
> \>\>\> INTRODUCTION [Everything](http://www.voidtools.com/) is, as some of you already know, a nice little program similar to Indexers like Google Desktop Search and Windows Search except it is a lot smaller and takes less than 10 seconds to index more than 5000000 files. It ind…

---

<div class="post-metadata">

**Author:** ![Johan](https://resource.dopus.com/letter_avatar_proxy/v4/letter/j/dec6dc/32.png) [@Johan](https://resource.dopus.com/u/Johan)\
**Post date:** [January 5, 2019, 9:48am UTC](https://resource.dopus.com/t/what-commands-need-to-register-in-everything-to-open-a-search-in-directory-opus/31073/3 "2019-01-05T09:48:35Z")

</div>

**Leo** Thank.  
I read this and I did the button too.  
 ![2019-01-05_124132](https://resource.dopus.com/uploads/default/original/3X/a/c/acf70ccc16fcc279f1f2d2a3eb7c6ba272f90023.png)  
I would also like to know which commands in Everything should be written if, for example, the button is not used.  
Here I still asked, but there is no solution yet.  
[https://www.voidtools.com/forum/viewtopic.php?f=5&t=7366](https://www.voidtools.com/forum/viewtopic.php?f=5&t=7366)

---

<div class="post-metadata">

**Author:** ![apocalypse](https://resource.dopus.com/user_avatar/resource.dopus.com/apocalypse/32/29397_2.png) [@apocalypse](https://resource.dopus.com/u/apocalypse)\
**Post date:** [January 5, 2019, 10:04am UTC](https://resource.dopus.com/t/what-commands-need-to-register-in-everything-to-open-a-search-in-directory-opus/31073/4 "2019-01-05T10:04:51Z")

</div>

For "open path" in Everything I use:  
`$exec("C:\Program Files\Directory Opus\dopusrt.exe" /acmd Go OPENCONTAINER PATH "%1")`

It opens a lister or tab and focuses the file passed.  
All others are default as I have explorer replacement for Opus and it handles them correctly.  
I hope this helps.

---

<div class="post-metadata">

**Author:** ![Johan](https://resource.dopus.com/letter_avatar_proxy/v4/letter/j/dec6dc/32.png) [@Johan](https://resource.dopus.com/u/Johan)\
**Post date:** [January 5, 2019, 10:21am UTC](https://resource.dopus.com/t/what-commands-need-to-register-in-everything-to-open-a-search-in-directory-opus/31073/5 "2019-01-05T10:21:38Z")

</div>

**It helped me**  
Go to **Menu\> Settings\> Customize Toolbars ...\> Commands**  
plus click on **User-defined Commands (xx)**  
in the first line after the header will be **Add new User Command ...** , click the right mouse button.  
there will be a menu with **paste** , the following code should be inserted there.  
The **everything** command will appear in the list (do not change the name, it will search for a command from the everything program)

```auto
<?xml version="1.0" encoding="UTF-8"?> 
<button backcol="none" display="icon" textcol="none"> 
   <label>everything</label> 
   <template>filepath,filename</template> 
   <icon1>#usercommand</icon1> 
   <function type="normal"> 
      <instruction>Go LASTACTIVELISTER</instruction> 
      <instruction>Go PATH="&amp;filepath&amp;" NEWTAB=deflister,findexisting</instruction> 
      <instruction>SELECT NONE</instruction> 
      <instruction>SELECT PATTERN="&amp;filename&amp;" DESELECTNOMATCH MAKEVISIBLE</instruction> 
   </function> 
</button>

```

go to settings everything  
Tools\> Options ...\> Context Menu\> Open Path\> Command  
insert the command Apply Ok

```auto
$exec("C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /acmd everything FILEPATH="$pathpart(%1)" FILENAME="$namepart(%1)")

```

---

<div class="post-metadata">

**Author:** ![Johan](https://resource.dopus.com/letter_avatar_proxy/v4/letter/j/dec6dc/32.png) [@Johan](https://resource.dopus.com/u/Johan)\
**Post date:** [January 5, 2019, 10:28am UTC](https://resource.dopus.com/t/what-commands-need-to-register-in-everything-to-open-a-search-in-directory-opus/31073/6 "2019-01-05T10:28:38Z")

</div>

> [@apocalypse](#):
>
> For "open path" in Everything I use:  
> `$exec("C:\Program Files\Directory Opus\dopusrt.exe" /acmd Go OPENCONTAINER PATH "%1")`

Thank you, but it does not work for me for some reason.

 ![2019-01-05_132637](https://resource.dopus.com/uploads/default/original/3X/1/2/1261deffa22d25905bf65b590322a7a118ac7525.png)

---

<div class="post-metadata">

**Author:** ![apocalypse](https://resource.dopus.com/user_avatar/resource.dopus.com/apocalypse/32/29397_2.png) [@apocalypse](https://resource.dopus.com/u/apocalypse)\
**Post date:** [January 5, 2019, 8:00pm UTC](https://resource.dopus.com/t/what-commands-need-to-register-in-everything-to-open-a-search-in-directory-opus/31073/7 "2019-01-05T20:00:30Z")

</div>

Tha path to your dopusrt.exe is different from mine.  
It's inside the dopus directory.  
Fix it and it should work.

---

<div class="post-metadata">

**Author:** ![Johan](https://resource.dopus.com/letter_avatar_proxy/v4/letter/j/dec6dc/32.png) [@Johan](https://resource.dopus.com/u/Johan)\
**Post date:** [January 7, 2019, 11:17am UTC](https://resource.dopus.com/t/what-commands-need-to-register-in-everything-to-open-a-search-in-directory-opus/31073/8 "2019-01-07T11:17:32Z")

</div>

Why is the path correct?

 ![2019-01-07_141032](https://resource.dopus.com/uploads/default/original/3X/f/2/f263e784d2f2cae9bdd789ecaefc75c3eaae394d.png)

* * *

**Still:**  
[SearchEverything: Getting Opus to work with Everything v4.0](https://resource.dopus.com/t/searcheverything-getting-opus-to-work-with-everything-v4-0/8894) [SearchEverything v.4.0.0.0.rar](https://resource.dopus.com/uploads/default/original/3X/f/c/fc171768fd2ebbfdad8e2c257ebea76a4cbbedf6.rar)  
It is better to add this to your code, then it will always open in a new tab.

```auto
<instruction>Go NEWTAB</instruction>

```

it will turn out like this

```auto
<instruction>Go NEWTAB</instruction>
<instruction>C:\Program Files\Everything\SearchEverything.exe &quot;{dlgstring}&quot;</instruction>

```

---

<div class="post-metadata">

**Author:** ![opw62](https://resource.dopus.com/letter_avatar_proxy/v4/letter/o/5e9695/32.png) [@opw62](https://resource.dopus.com/u/opw62)\
**Post date:** [March 4, 2019, 8:51am UTC](https://resource.dopus.com/t/what-commands-need-to-register-in-everything-to-open-a-search-in-directory-opus/31073/9 "2019-03-04T08:51:08Z")

</div>

FWIW

I have added:  
`$exec("x:\Directory Opus-path\dopusrt.exe" /acmd Go NEWTAB PATH "%1" tofront)`

in my case:  
`$exec("D:\Directory Opus\dopusrt.exe" /acmd Go NEWTAB PATH "%1" tofront)`

under Everything \> Options \> Context menu \> Explore Path

![SnagIt-04032019%20094953](https://resource.dopus.com/uploads/default/original/3X/e/6/e6a1a0f6e5a2d36fbe3c1ecc07f2af9065768ee6.png)

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [March 4, 2019, 12:01pm UTC](https://resource.dopus.com/t/what-commands-need-to-register-in-everything-to-open-a-search-in-directory-opus/31073/10 "2019-03-04T12:01:03Z")

</div>

> [@opw62](#):
>
> I have added:  
> `$exec("x:\Directory Opus-path\dopusrt.exe" /acmd Go NEWTAB PATH "%1" tofront)`
> 
> in my case:  
> `$exec("D:\Directory Opus\dopusrt.exe" /acmd Go NEWTAB PATH "%1" tofront)`

`Go NEWTAB PATH "%1" tofront` should be `Go NEWTAB=tofront PATH "%1"` in both cases.

---

<div class="post-metadata">

**Author:** ![opw62](https://resource.dopus.com/letter_avatar_proxy/v4/letter/o/5e9695/32.png) [@opw62](https://resource.dopus.com/u/opw62)\
**Post date:** [March 5, 2019, 5:14am UTC](https://resource.dopus.com/t/what-commands-need-to-register-in-everything-to-open-a-search-in-directory-opus/31073/11 "2019-03-05T05:14:19Z")

</div>

Thanks Leo.  
Maybe I was lucky, but how I -had- it, one way or the other, worked as well.  
Corrected the everything settings.  
Thanks again.

---

<div class="post-metadata">

**Author:** ![opw62](https://resource.dopus.com/letter_avatar_proxy/v4/letter/o/5e9695/32.png) [@opw62](https://resource.dopus.com/u/opw62)\
**Post date:** [March 15, 2019, 12:14pm UTC](https://resource.dopus.com/t/what-commands-need-to-register-in-everything-to-open-a-search-in-directory-opus/31073/12 "2019-03-15T12:14:44Z")

</div>

Question: Can  
Go NEWTAB=tofront PATH "%1"  
also be combined with:  
Go NEWTAB=findexisting ?

Thanks.

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [March 15, 2019, 12:29pm UTC](https://resource.dopus.com/t/what-commands-need-to-register-in-everything-to-open-a-search-in-directory-opus/31073/13 "2019-03-15T12:29:38Z")

</div>

`Go NEWTAB=tofront,findexisting PATH "%1"`

---

<div class="post-metadata">

**Author:** ![opw62](https://resource.dopus.com/letter_avatar_proxy/v4/letter/o/5e9695/32.png) [@opw62](https://resource.dopus.com/u/opw62)\
**Post date:** [March 15, 2019, 1:21pm UTC](https://resource.dopus.com/t/what-commands-need-to-register-in-everything-to-open-a-search-in-directory-opus/31073/14 "2019-03-15T13:21:49Z")

</div>

As always, many thanks indeed!

---

<div class="post-metadata">

**Author:** ![opw62](https://resource.dopus.com/letter_avatar_proxy/v4/letter/o/5e9695/32.png) [@opw62](https://resource.dopus.com/u/opw62)\
**Post date:** [July 3, 2023, 6:44am UTC](https://resource.dopus.com/t/what-commands-need-to-register-in-everything-to-open-a-search-in-directory-opus/31073/15 "2023-07-03T06:44:08Z")

</div>

So, within Everything I have the following context menu items (involving Opus)

1. **Open Path:**  
$exec("D:\Directory Opus\dopusrt.exe" /cmd Go NEW PATH "%1")

2. **Explore:**  
$exec("D:\Directory Opus\dopusrt.exe" /cmd Go NEWTAB OPENCONTAINER=target "%1")

3. **Explore path:**  
$exec("D:\Directory Opus\dopusrt.exe" /cmd Go NEWTAB=tofront,findexisting PATH "%1")

They really work fine.

In 1 specific case (3 windowpanels with locked tree+folder) I would prefer Opus to start as, let's say, 'separate session', i.e. not as newtab, but Opus rather running twice so to say.

Q: would that be possible? I would then change, for instance, number 2 above.  
(This avoids the warning "_The two folders are no longer in sync. Return to the common folder to re-sync._..." etc)

Thanks!  
bump..
