explorer.exe has a command line option: \select.
By using this option, explorer.exe could open the parent folder of the specified file/folder and highlight the file/folder.
I want to call dopus.exe or dopusrt.exe to do the same thing, but could not find the solution.
P.S. Right click on the tray icon of Dropbox, and select any item in the "Recently changed files" menu, dopus could be rightly called and act as same as I mentioned before. So there is a way to solve the problem.
"%ProgramFiles%\GPSoftware\Directory Opus\dopusrt.exe" /acmd Go PATH "C:\Windows\notepad.exe"
For folders, the similar command would open the folder itself rather than the folder's parent:
"%ProgramFiles%\GPSoftware\Directory Opus\dopusrt.exe" /acmd Go PATH "C:\Windows"
In the next version, we'll make it so that you can use the OPENCONTAINER argument in both situations, so that it does what you want with both files and folders:
"%ProgramFiles%\GPSoftware\Directory Opus\dopusrt.exe" /acmd Go OPENCONTAINER PATH "C:\Windows"
[quote="leo"]That's done automatically for files. For example:
"%ProgramFiles%\GPSoftware\Directory Opus\dopusrt.exe" /acmd Go PATH "C:\Windows\notepad.exe"
For folders, the similar command would open the folder itself rather than the folder's parent:
"%ProgramFiles%\GPSoftware\Directory Opus\dopusrt.exe" /acmd Go PATH "C:\Windows"
In the next version, we'll make it so that you can use the OPENCONTAINER argument in both situations, so that it does what you want with both files and folders:
"%ProgramFiles%\GPSoftware\Directory Opus\dopusrt.exe" /acmd Go OPENCONTAINER PATH "C:\Windows"
It's very funny that dropbox can call dopus to do the right thing when explorer is replaced by dopus to open files and folders, as the image shown below:
I click on the second item of "Recently changed files", and the result is shown below:
So in fact dopus could make it. I think there is a way to make system show and select file in its parent directory in dopus——which meets my requirement——rather than directly invoking dopusrt.exe to do the thing.