Directory Opus获取文件夹路径的补充

经验创意 · 758 次浏览
浅沧 创建于 2022-01-27 01:39

可以通过运行Directory Opus自带的dopusrt.exe程序来获得当前路径,将如下参数传给dopusrt.exe:

/cmd Clipboard SET {sourcepath$}     将当前路径复制到剪贴板

 

可选用的路径官方文档如下:

Codes for passing paths

The following codes are used to pass various paths to external programs. The path codes available offer all possible combinations of the following three criteria:

  • Which path - either the current source or destination path, or in a dual-display Lister, the left (top) or right (bottom) paths irrespective of their source/destination status.
  • Path required or not required - when a path is required, the command will not be run at all if that path is not valid - for example, when there is no valid destination folder. When the path is not required, the command will still be run and it will act as if the path code was not present at all.
  • Long filenames or short filenames - short filenames are useful for running 16 bit programs or other legacy software that can't handle long filenames.

 

The long form of each code is built from a combination of keywords that reflect the three criteria. If a long code ends in a $ sign it is the "path required" form of the code - it is said to "need" a valid path. Note that the left and right paths do not support the "required" forms.

 

Long form

Short form

Description

{sourcepath}

{s!}

Source path, long filenames, not required.

{sourcepath$}

{s}

Source path, long filenames, required.

{destpath}

{d!}

Destination path, long filenames, not required.

{destpath$}

{d}

Destination path, long filenames, required.

{sourcepathshort}

{ss!}

Source path, short filenames, not required.

{sourcepathshort$}

{ss}

Source path, short filenames, required.

{destpathshort}

{ds!}

Destination path, short filenames, not required.

{destpathshort$}

{ds}

Destination path, short filenames, required.

{leftpath}

{l}

Left (top) path, long filenames.

{rightpath}

{r}

Right (bottom) path, long filenames.

{leftpathshort}

{ls}

Left path, short filenames.

{rightpathshort}

{rs}

Right path, long filenames.

 


回复内容
暂无回复
回复主贴