Code to launch lister with specific file located

I would love it if somebody could show me code to create a button in DOpus that allows me to specifically locate a certain file in a specific directory so when I click the button...DOpus automatically opens up the lister and immediately selects the file in question. This would be a huge time saver. This way I wouldn't have to filter out or I wouldn't have to remember the file if I design the code to look for a certain file in question.

This could be done two ways...one: I already know the file and hard code the file name into the code for the button so DOpus launches the lister with the file highlighted. The other one...which opens a dialog box allowing me to input the name of the file in question...and goes to the lister which is hard coded into the button to find the file. Any ideas on what code would be needed to accomplish this? Anything would be greatly appreciated.

Just use the Go command.

For example the following button command will open a new lister and jump to the fully qualified file name contained in the Windows clipboard.

Go "{clip}" NEW

[quote="JohnZeman"]Just use the Go command.

For example the following button command will open a new lister and jump to the fully qualified file name contained in the Windows clipboard.

Go "{clip}" NEW

This is too vague. How do I specify the exact directory where the file is located?

If C:\Full\Path\To\The\File.txt was in your clipboard then John's suggested command would run this:

Go "C:\Full\Path\To\The\File.txt" NEW

Hopefully all is clear now.

So in the case where you know the path and filename already, you would replace {clip} with that info in your button...

In the case where you want to supply that info in a dialog when you run the button, you could do something like Go {Rs|Specify file location...} NEWTAB or something similar... but realize that unless you wanted the button to open a new window (like Johns NEW arg does) or a new folder tab (like my NEWTAB example does) then you'll get the same result from this button as just typing in the path and filename in the location/address field of the lister, so why then bother with a button :wink:.