Arguments or Parameters for Windows Shortcuts

I would like to know what command-line arguments to use in a Windows Shortcut to not only open Dopus at a specified location, but to force a particular view as well.

For example, I last used a Commander view with a File Tree, but when I launch the shortcut, I want it to open in Explorer view and have the lister open to a specific folder.

I can get the specific folder part to work by simply adding the folder in quotes to the Target field of the shortcut, but I can't figure out how to force an explorer view when Dopus opens.

Thanks,
Jeff

PS - I spent a long time searching and reading posts on this forum, but nothing addressed this particular issue. I did, however, learn a lot of neat tricks for customizing toolbars and adding custom functions to buttons! :smiley:

You could do this with command-line arguments but if you just want to be able to double-click an icon to launch a particular folder with a particular view then it is probably easier to use the Layouts system instead.

Set up a lister as you want it, then choose Settings -> Lister Layouts -> Save This Lister and give it a name.

Then go to Preferences -> Listers -> Layouts and drag the layout from the list to your desktop to create a shortcut to it.

Elegant - Thank you!

May I trouble you for the command-line arguments so that I have them for future use in different possible scenarios?

I appreciate your time, nudel; thanks again.

-Jeff

You can run any Opus command from outside of Opus using

dopusrt.exe /cmd

So if you wanted to open a lister showing C:\ then you could use

dopusrt.exe /cmd Go C:\

The Go command has arguments to control the view mode and other things. Have a look in the manual for a full list of what it can do.

Thank you, nudel.

It's interesting - before I posted for the first time I tried the same syntax that you gave me. Unfortunately, I used dopus.exe instead of dopusrt.exe for the target.

I guess it helps a lot if you choose the correct target.

:slight_smile:

-Jeff

I don't understand why when I try this...it's not working. When I try to create a shortcut on the desktop using dopusrt.exe I get "dopusrt.exe is not found" error message. Why am I getting this error?

The dopusrt.exe is in a directory under Program Files which isn't in the path by default. You have to specify the full path to the exe.

I've tried this and I'm still getting the directory error not found message.

Care to tell us what the actual command you're trying to run is? I've lost my tarot cards...

Care to tell us what the actual command you're trying to run is? I've lost my tarot cards...[/quote]

How about

c:\directory opus\dopusrt.exe /cmd go c:\downloads

As for your tarot cards...I'm sorry...I only use Modiano Cristallos.

You need to enclose the full path to the dopusrt executable in double quotes like this:

"c:\directory opus\dopusrt.exe" /cmd go c:\downloads

For typical installations the full path would be: "C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe"

[quote="JohnZeman"]You need to enclose the full path to the dopusrt executable in double quotes like this:

"c:\directory opus\dopusrt.exe" /cmd go c:\downloads

For typical installations the full path would be: "C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe"[/quote]

Now it works. Thanks. Only one tiny question left...how do I get this shortcut to open another lister with a different directory using the dual pane setting?

Something like this should do it:

"c:\directory opus\dopusrt.exe" /cmd Go "D:\test folder" NEW=dual

[quote="JohnZeman"]Something like this should do it:

"c:\directory opus\dopusrt.exe" /cmd Go "D:\test folder" NEW=dual

It didn't work.

"It didn't work" doesn't give me much to go on as to why it didn't work for you. That command works fine for me.

First of all...your example ONLY opens up DOpus with the directory in ONE pane...while the other pane hasn't been specified. It's that particular condition I'd like to rectify. I want to include in the shortcut the OTHER lister directory for DOpus to open. It opens up the lister on the left fine...now I want the same shortcut to allow DOpus to open a different directory in the RIGHT pane. Now...I'm aware of doing this via DOpus by setting up the listers and saving them in DOpus...and thereby dragging out the lister setting from the Preferences. I want to be able to design the same deal using a command line switch.

Use the DUALPATH argument.

This worked. Thanks. Now I have a new problem though: when I launch the shortcuts from the desktop...each shortcut is only launching the listers in ONE Dual Pane. I don't understand this behavior....I thought if I clicked a different DOpus shortcut...it would launch a different lister in dual panes because that's the way I want them...opening multiple listers on the desktop is how I like doing it.

Is there a preference that I'm overlooking in DOpus that takes care of this and allows me to open multiple listers when I launch the shortcuts from the desktop? Or is there a raw command that I have to put into the shortcut that lets DOpus know I want to launch multiple listers when I select the different desktop shortcuts?

Do you still have the "NEW" argument as part of the command?

I added it myself when I thought about that command. It works correctly now.

One thing I find really neat..and wish I could improve on...when I right click the desktop...I get the menu option to open different listers I create. Is there any way of adding websites to this right click option?! God...if I could understand the programming aspect of this...I really could fly with Directory Opus.