Opening Dopus from within an external application

I am using a search and indexing application that allows the search results to be viewed with an external file manager. To able this I need to add the full path and parameters to the applications ini file. The path is not the problem but the full syntax is. What syntax, including parameters, would I use?
The application is called "Everything" from voidtools.com.
Thank you in advance.

1 Like

You can run any Opus command via dopusrt.exe. For example:

"C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /CMD Go PATH "C:\" NEW

Hello Whoozhe, if you're still round here. i have the same problem with
Everything. did you find the syntax for the in file with dopus ? thanks

I've been messing around with Search Everything and DOpus and at the moment I'm using hstart (Hidden start).

I had a batch file going and was intending to use hstart so that I wouldn't see the cmd window flash each time. Anyway here's the code/syntax I'm using. Its quite messy...

open_folder_command=$exec("C:\Program Files\GPSoftware\Directory Opus\hstart" /NOCONSOLE ""C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /cmd Go LASTACTIVELISTER" ""C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /cmd Go "%1" NEWTAB=findexisting")For 'Open Path' I'm not sure how to get DOpus to highlight the folder/file selected. so it needs a bit of working.open_folder_path_command=$exec("C:\Program Files\GPSoftware\Directory Opus\hstart" /NOCONSOLE ""C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /cmd Go LASTACTIVELISTER" ""C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /cmd Go "$parent(%1)" NEWTAB=findexisting")If anyone has nicer code or knows how to select the folder, please share it, I would very much appreciate it, thanks. =)

You could probably add a Select command at the end to select the file if Everything lets you get just the name (without path).

From memory, I don't think there's a way to ask Opus to scroll the file into view, though. (i.e. It might be selected but scrolled off the bottom of the window.)

Everything has now added a $namepart(filename) command so I've changed the command in my previous post to open_folder_path_command=$exec("C:\Program Files\GPSoftware\Directory Opus\hstart" /NOCONSOLE ""C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /cmd Go LASTACTIVELISTER" ""C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /cmd Go "$parent(%1)" OPENINDEST NEWTAB=findexisting" ""C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /cmd SELECT "$namepart(filename)"")But I still can't get DOpus to auto select the file. Am I using the command correctly? I would like to be sure as the $namepart(filename) is only in beta, so it may be a bug in Everything. Many thanks for the help.

I placed a shortened version of the above in Search Everything 1.3.3.658 (x64) Running in Windows 8.1 with DOPUS 10 and it works like a dream, opening to the correct directory, but it still does not select the correct file.

Under General Context Menu
-Explore Path

$exec("C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /cmd Go "$parent(%1)" OPENINDEST NEWTAB=findexisting" ""C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /cmd SELECT "$namepart(filename)"")

I have not figured out exactly what's the other Search Everything Context Menu mean compared with Explore (Path).
Open Path
Explore
Explore (Path)

But what does it matter. It just works and I disable the Open Path and Explore and use o?y Explore (Path) which is good enough for me.

I wanted to avoid using hStart which is why I used the shortened version for my specific purpose although I would have like to have the specific file selected in Everything also selected in the now opened Dopus lister, but I'm not quite sure how to achieve this.

Thanks for posting your command in any case

There's a better way to use it now, I use the following command in Everything: $exec("E:\DOpus\x86\dopusrt.exe" /acmd everything FILEPATH="$pathpart(%1)" FILENAME="$namepart(%1)")

and the DOpus 'everything' command is: <?xml version="1.0"?> <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=&quot;&amp;filepath&amp;&quot; NEWTAB=deflister,findexisting</instruction> <instruction>SELECT NONE</instruction> <instruction>SELECT PATTERN=&quot;&amp;filename&amp;&quot; DESELECTNOMATCH MAKEVISIBLE</instruction> </function> </button>

Hope this helps!

Thanks

I modified the command to reflect where I had my dopusurt.exe, so it became :

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

But I get an error message that says

Windows cannot find 'everything'. Make sure you type the name correctly, and then try again.

Must be something to do with my Path to Everything.exe ?

Another question if you don't mind, where am I supposed to use the following in DOpus ? Could you kindly point me in the right direction.

<?xml version="1.0"?> everything filepath,filename #usercommand Go LASTACTIVELISTER Go PATH="&filepath&" NEWTAB=deflister,findexisting SELECT NONE SELECT PATTERN="&filename&" DESELECTNOMATCH MAKEVISIBLE

Currently I use a few other software that accepts commandline commands together with DOpus, like Beyond Compare, MP3tag, DoubleKiller Pro, VirusTotal Uploader and now Everything.

Thank you for helping me integrate another great tool with DOpus.

1 Like

You should probably specify the full path to everything.exe.

<?xml version="1.0"?> <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=&quot;&amp;filepath&amp;&quot; NEWTAB=deflister,findexisting</instruction> <instruction>SELECT NONE</instruction> <instruction>SELECT PATTERN=&quot;&amp;filename&amp;&quot; DESELECTNOMATCH MAKEVISIBLE</instruction> </function> </button>
This is a user-defined DOpus internal command. to use it, copy it all then go to Settings > Customize Toolbars > Commands. Right click on user-defined commands and click paste. There should now be a user-defined command called 'everything' in the list. Hopefully that fixes the issue you are having

1 Like