Get Path of current tab (in UNC format)

I have a DOS batch that receives a UNC formatted path to map a network drive.

I'm trying to run it from a DOpus button and pass the UNC path using "Clipboard FILE COPYNAMES=path,unc", but this only works if I have a file or folder selected. I want to get the path of the active tab, regardless of what is selected, if anything.

I hoped to find find a command like Clipboard TAB_PATH COPYNAMES=path,unc" but cannot find anything. I've seen a few posts about UNC paths, but nothing I could find that says how to get the path of the active tab.

Appreciate being pointed in the right direction to fix this.

Thanks. Greg.

Clipboard FILE {sourcepath} COPYNAMES=unc

From the manual: Codes for passing paths

Super, thanks
(Explored that page but couldn't get my head around it - back to dopus basics for me)

The manual is cryptic although I assume there are some people who know what a source path is...

You can make the manual easier to understand with some redundancy... If it gives the current tab's path, why not say that? If it only sometimes does that then we need a '{currenttabpath}'.

If the document had a hypertext link for "source path" I'd have clicked that. It would help if all common terms were linked.

Basic Concepts » Source and Destination

1 Like