Open associated files in a new tab instead of a new window

I've associated zips to DopusRT. When I open a zip from somewhere else (outlook, firefox), it created a new dopus window.

Is there a way to open it in a new tab in the current source instead?
Thanks.

Easily done:
[ul][li]Go to Settings -> File Types and edit the Zip file type.[/li]
[li]Edit the open action, changing its type to Run an application and its command to:

"C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /cmd Go PATH="%1" NEWTAB

(Assuming you have Opus installed in the default location.)[/li][/ul]

Excellent, I see it works also for folders ...
One related question, after opening a zip of a folder using that method (from the Run windows dialog), the focus is no in DOpus... any way to put it there?

I see what you mean. I don't know of a way to change this at the moment.

I'll talk to Jon about it when I get home from work and either file a feature request for you or report back with a solution.

You can do it in two lines, which you could combine into a single .bat file which takes an argument if you need to do it in a single line (from Start->Run or whatever).

Run this before or after the other line (shouldn't matter which) to bring the lister to the front and give it focus:

"C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /cmd Go LASTACTIVELISTER

Edit: There's a caveat: Since LASTACTIVELISTER works on the last active lister and not the source lister, while the other Go command will always use the source lister, you may open the new tab in one lister but bring a different one to the front. :frowning:

Looking through my old posts I realised I already filed a report asking for this to be made more useful a little while ago, so fingers crossed.

Not a problem, as my goal here is to have only one instance opened at all time.

so I made a bat file with the open command & the setfocus, & associate the bat to folders & zip.
It works fine, but I can see the bat file being run - and I don't like it :slight_smile:

Any way to prevent that?

Try:

Start "Title" MIN "Drive:\Path\ScriptFile.bat" <script file parameters>

That should run your script minimized. I'm not sure if it will work from the place you are launching it, but give it a try.

Alas, it's not working.
It's actually start /INV (for invisible).
But it seems the shell can't use start, nothing happens at all. When trying it from a run command dialog, it says start isn't found (which is obvious, as it's a command from cmd.exe).

Interesting problem here. It might not be possible using cmd for what I'm looking for.

I'm not aware of a "/INV" switch for the Start command (I'm using Windows XP).

This might come close:

Cmd.exe /c Start "Title" MIN "Drive:\Path\ScriptFile.bat" <script file parameters>

I think CMD.exe will flash a quick Command Console window, Start the .bat minimized then exit.

Another option is to Google for CMDOW.

Tried CMDOW ... it works fine from the cmd, but it still shows a command window when run from the run dialog.

I believe the only option is to actually create a win32 program (not console) that then calls shellexecute, with some syntax to queue up multiple commands.
I might do that myself, for fun :smiley:

Thanks for answering all my posts! :laughing:

You could use VBScript. That's what it's there for. :slight_smile:

[quote="zeflash"]Tried CMDOW ... it works fine from the cmd, but it still shows a command window when run from the run dialog.

I believe the only option is to actually create a win32 program (not console) that then calls shellexecute, with some syntax to queue up multiple commands.
I might do that myself, for fun :smiley:

Thanks for answering all my posts! :laughing:[/quote]

I think you need to put CMDOW in your system path and then call it from inside of your .bat file then it hides the window. Lots of people use it during unattended Windows Installation.

Won't work, in that case I'll see the initial cmd.exe that is launching cmdow.
I'll do a small win32 app whenever I have some free time.

would the line "runmode hide" before the actual command be any usefull?

I think that the best solution here would be for dopusrt to have another DDE command, where one could put newtab instead of newlister (and that would obviously put the lister on the foreground)

This way, it works without having to run batch files that do multiple commands, and it doesn't mess up the folder handling - as replacing the DDE command for folder "open" by a direct call the dopus breaks pretty much all system folders.

I'm going to request a feature - again :slight_smile:

I would love to see that soon, too!