Directory Opus
GitHub用户脚本Telegram 群
  • 主页
  • 文件浏览
    • 文件窗口
      • 默认窗口
      • 工具栏
        • 收藏栏
    • 多文件夹
      • 单窗口模式
      • 标签页
      • 双栏
      • 来源和目标
    • 查看
      • 列表
        • 列
        • 排序
        • 分组
        • 视图
          • 详细视图
          • 缩略图
          • 平面视图
        • 标记
        • 选择
          • 复选框
        • 即时查找
      • 信息提示
      • 查看器
      • 文件夹格式
    • 导航
      • 地址栏
      • 文件夹树
      • 收藏夹
      • 别名
    • 文件对话框
    • 终端
  • 文件搜索
  • 文件操作
    • 文件创建
    • 文件移动
    • 文件复制
    • 重命名
    • 剪贴板
    • 上下文菜单
    • 拖放
    • 安全
  • 文件类型
    • 元数据
    • 压缩包
    • 图片
      • ICO
      • SVG
    • 文档
      • 纯文本
      • 代码
      • Markdown
      • Word 文档
      • PDF
      • 网页
    • 表格
      • Excel 表格
      • 数据库
    • 幻灯片
    • 模型
    • 种子
    • 邮件
  • Directory Opus
    • 配置
      • 主题
    • 命令
      • 命令
      • 外部控制码
      • 修饰符
      • 内置命令
    • 脚本
      • 变量
    • 更新日志
  • 官方手册
    • 目录
    • 版权
    • 许可证
      • 最终用户许可条件
      • 批量许可条件
    • 致谢
    • 简介
    • 基本概念
      • 启动 Opus
      • 文件窗口
        • 打开文件窗口
        • 默认文件窗口
        • 导航
          • 主文件夹
          • 上、前进、后退
          • 文件树
          • 地址栏
            • 路径字段
          • 驱动按钮和下拉菜单
          • 收藏夹
          • 智能收藏夹
          • 最近和历史列表
          • 别名
          • 成对文件夹
        • 标签
          • 标签切换器
          • 锁定标签页
          • 关联标签页
          • 标签组
        • 视图模式
        • 双栏
          • 导航锁定
        • 工具栏
          • 默认工具栏
            • 菜单工具栏
            • 操作工具栏
            • 收藏栏
            • 文件列表工具栏
            • “图像”工具栏
          • 动态工具栏
          • 工具栏集
        • 即时查找字段
        • 查看器窗格
        • 元数据窗格
        • 实用程序面板
        • 布局
        • 样式
        • 主题
          • 创建自己的主题
        • 状态栏
      • 资源管理器替换模式
      • 源目录和目标目录
      • 选择文件
        • 使用鼠标和键盘进行选择
          • 单击模式
          • 复选框模式
        • 简单通配符选择
        • 高级选择
        • 选择单元格
      • 搜索和过滤
        • 过滤栏
        • 显示所有内容
        • 工具栏过滤项
        • 快速搜索
        • 查找文件
          • 简易查找
          • 高级查找
      • 排序和分组
        • 手动排序
      • 文件夹格式
        • 文件夹格式对话框
          • 列
            • 冻结列
          • 排序
          • 分组
          • 显示
          • 过滤器
        • 已保存文件夹格式
        • 自动记住格式
        • 内容类型
        • 确定当前格式
        • 锁定格式
      • 可展开文件夹
      • 平面视图
      • 文件夹大小
      • 虚拟文件系统
        • 系统虚拟文件夹
        • 文件集合
          • 存储的查询
        • 库
        • 压缩包
        • FTP
        • MTP
    • 文件操作
      • 复制、移动和删除文件
        • 复制和粘贴
        • 拖放
        • 使用工具栏按钮进行复制
          • 复制时使用通配符
        • 复制队列
          • 复制覆盖和幽灵文件
          • 无人值守操作
        • 作业栏
        • 确认文件替换对话框
        • 复制已更新文件
          • 同步
        • Deleting Files
          • 安全删除
      • 重命名文件
        • 内联重命名
        • 简单通配符重命名
        • 高级重命名
          • 重命名预设
          • 重命名模式
            • 标准通配符重命名
            • 查找和替换
            • 正则表达式
            • 正则表达式 + 查找并替换
          • 重命名操作
            • 文件编号
            • 重命名宏
          • 重命名选项
          • 使用元数据重命名
          • 重命名脚本
      • 创建文件夹
      • 创建压缩包
        • 添加到压缩包文件
        • 添加到压缩包对话框
          • Zip 选项
          • 7z 选项
          • RAR 选项
          • TAR BZip2 选项
          • TAR GZip 选项
        • Zip 文件
          • Zip 注释
          • 只读模式
          • 自解压 Zip 文件
      • 跟踪和撤销文件操作
      • 更改属性
      • 标记和状态图标
      • 编辑元数据
        • 文档属性
        • 图片属性
        • 音乐属性
          • 添加封套插图
        • 视频属性
        • 扩展属性
        • 元数据的编程设置
        • 时间偏移
      • 文件说明
      • 过滤操作
        • 过滤条款
        • 添加、删除和编辑子句
        • 过滤条款类型
        • 文本过滤器
      • UAC 和管理员模式
    • FTP
      • FTP 地址簿
        • 默认设置
        • 站点页
        • 网络页面
        • Display Page
        • 索引页面
        • 声音页面
        • 杂项页面
        • 速度页面
        • 特殊页面
        • 转账页面
        • 代理页面
      • 添加新站点
      • FTP 连接
      • 站点属性
      • FTP 日志
      • FTP 路径
    • 附加功能
      • 查看图像
        • 查看器鼠标、键和工具栏
        • 图像标记
        • 文件窗口关联查看器
      • 播放声音
      • 图像转换
        • 自动化图像转换任务
      • 打印文件夹
      • 重复文件查找器
      • 拆分文件
      • 拼接文件
      • 制作链接和连接点
      • 浮动工具栏
        • 控制浮动工具栏
      • 系统级热键
      • 导出到 USB
      • 与 Everything 集成
      • 擦除所有空白
      • 文件类型概览
      • 更新检查器
      • CLI
      • 崩溃日志
    • 配置
      • 备份和恢复配置
      • 配置类别
        • 色彩和字体
          • 暗黑模式
          • 主题
          • 颜色混合
          • Directory Opus 颜色
          • Windows 颜色
          • 图像
          • 字体
        • 文件列表
          • 文件夹展开
          • 鼠标
            • 背景事件
          • 导航
          • 选项
            • 信息提示
            • Tab键
          • 状态栏
          • 标题栏
        • 文件列表列
          • 外观
          • 求值器列
          • 求值器分组
          • 文件名
          • 图标
          • 选项
          • Shell 属性
        • 文件列表模式
          • 详细信息
          • 增强模式
            • 外观
            • 按钮
          • 缩略图
            • 文件夹
            • 性能
            • 样式
          • 平铺模式
        • 文件操作
          • 文件复制
            • 属性
            • 确认
            • 元数据
            • 安全
          • 删除文件
          • 双击文件
            • FTP
          • 日志记录
          • 元数据
            • 元数据编辑器
            • 音乐类型
          • 选项
          • 进度指示器
            • 统计文件
            • 作业栏
          • 重命名文件
            • 控制键
        • 过滤和排序
          • 过滤
          • 过滤栏
          • 即时查找
            • 过滤模式
            • 查找模式
            • 文件夹模式
          • 全局过滤器
          • 快速键
          • 排序
        • 文件夹
          • 自动读取
          • 文件夹格式
            • 自动格式
          • 文件夹图像
          • 文件夹大小
            • 交接点和链接
          • 网络服务器
          • 特殊文件夹
          • 虚拟文件夹
            • 桌面
            • 文件系统
            • 此电脑
        • 文件夹标签页
          • 尺寸
          • 边缘颜色
          • 文件夹标签栏
          • 分组
          • 锁定
          • 选项
        • 文件夹树
          • 外观
          • 内容
          • 展开/折叠
            • 图钉
          • 选项
          • 选择事件
        • 常用路径
          • 收藏夹列表
          • 文件夹别名
          • 主文件夹
          • 配对文件夹
          • 最近列表
          • 智能收藏夹
        • Internet
          • 电子邮件
          • 更新
        • 标记
          • 标记 定义
          • 标记分配
            • 在特定文件夹中
          • 选项
        • 启动 Opus
          • 资源管理器替换
          • 来自桌面
          • 任务栏图标
          • 来自 Win + E 热键
          • 启动
        • 布局和样式
          • 默认文件窗口
          • 布局
          • 样式
        • 地址栏
          • 选项
          • 路径字段
            • 外观
            • 菜单
            • 路径补全
          • 工具栏
        • 其它
          • 高级选项
          • 外部工具
          • 隐私
          • Shell 扩展
          • 声音
          • Windows 集成
            • 跳跃列表
          • Windows 启动延迟
        • 工具栏
          • 外观
          • 文件夹工具栏
          • 图标
          • 选项
          • 工具栏组
          • 视图工具条
        • 用户界面
          • 语言
          • Spacing
          • 过渡动画
        • 查看器
          • 独立查看器
            • Options
            • 尺寸和位置
            • 鼠标按钮
            • 已标记图片
            • 幻灯片放映
          • 查看器窗格
          • 查看器插件
        • Zip 和其它压缩包文件
          • 压缩包与 VFS 插件
          • 压缩包选项
          • 上下文菜单
          • Zip 文件
    • 自定义
      • 自定义对话框
        • 工具栏
        • 上下文菜单
        • 按键
        • 命令
        • User Commands
        • 默认工具栏
      • 创建您自己的按钮
        • Editing the Toolbar
          • 启动选项
          • 工具栏上下文菜单
          • 多功能按钮
          • 下拉按钮和菜单
          • 动态按钮
            • 驱动器按钮配置
          • Field Buttons
            • 路径字段配置
            • 过滤器字段配置
            • 驱动器下拉配置
          • 与他人分享功能
        • 命令编辑器
          • 简单命令编辑器
          • 高级命令编辑器
          • 使用热键控件
        • 用户自定义命令
        • 同步和异步函数
        • 内部命令参数
        • 将文件传递到外部程序
        • 命令修饰符
        • MS-DOS 批处理命令
        • WSL 命令
        • 嵌入重命名脚本
        • DDE 函数
        • 嵌入式功能
    • 文件类型
      • Directory Opus 文件类型
      • 文件类型组
      • 文件类型编辑器
        • Actions
        • 事件
        • 上下文菜单
        • 下拉菜单
        • 替换菜单
        • Info Tip
        • 平铺模式
    • 脚本
      • 重命名脚本
        • Custom Fields in the Rename Dialog
      • 脚本函数
      • 脚本加载项
        • 包括文件
        • 模块
        • 脚本包
        • 脚本安装器文件
      • Script Management
        • 创​​建新脚本
        • 脚本安装器
      • 脚本编辑器
        • 脚本资产**
        • 编辑器
          • 代码编辑器
          • 对话框编辑器
            • 对话框编辑器命令
            • Adding Dialog Controls
            • 尺寸和定位对话框控件
            • 使用布局命令
            • 对话框控件制表顺序
            • 对话框控制助记符
            • 语言覆盖
            • 对话框控件属性
              • 常见对话框属性
              • 对话框属性 若要编辑对话框的属性,请在任意控件外部单击对话框。适用于对话框的具体属性是:
              • 静态文本属性
              • 标记文本属性
              • 编辑控件属性
              • 按钮属性
              • 复选框属性
              • 单选按钮属性
              • 组合框属性
              • 列表框属性
              • 列表视图属性
              • 标签页控件属性
              • 组框属性
              • Palette Properties
          • 字符串编辑器
        • 片段
      • 脚本对话框
        • 创建脚本对话框
        • 对话消息循环
          • 简单对话框
          • 分离对话框
        • 读取对话框控件值
        • 与对话框控件交互
      • 资源
        • 字符串资源
      • 脚本日志
      • 示例脚本
        • 示例重命名脚本
        • 简单脚本函数
        • 添加新内部命令
        • 添加新列
        • 使用 Shell 属性添加新列
        • 拓展即时查找领域
        • 简单对话框和弹出菜单
        • 脚本对话框示例
        • 响应事件
    • 求值器
      • 求值器语法
      • 求值器变量
      • Applicable Contexts
        • 求值器列
        • 求值员组
        • 过滤器和查找
        • 文件信息提示和平铺
        • 按钮和功能
          • 求值器按钮标签
          • Colors
          • 求值器按钮图标
          • Tooltips
          • Dynamic State
          • Conditional Behavior
          • 函数中的求值子句
          • 求值插入代码
          • 求值器生成的命令行
        • 重命名
        • Generated File Names
        • 重命名控制键
        • 状态栏
        • 列上下文菜单
        • 标签上下文菜单
      • Examples
    • 参考
      • 通配符参考
        • 模式匹配语法
        • 正则表达式语法
      • 状态栏代码
        • 文件和文件夹计数代码
        • 磁盘空间代码
        • 音乐和视频时长代码
        • 图形元素代码
        • 其它代码
        • 条形图和百分比
        • 隐藏状态栏中的部分内容
        • 状态栏上的填充部分
      • 命令参考
        • 参数类型
        • 内部命令
          • CLI
          • Clipboard
          • Close
          • ContextMenu
          • Copy
          • CreateFolder
          • Delete
          • Favorites
          • FileType
          • Find
          • GetSizes
          • Go
          • Help
          • Image
          • Join
          • Marker
          • Play
          • Prefs
          • Print
          • Properties
          • Recent
          • Rename
          • Select
          • Set
          • SetAttr
          • Show
          • Split
          • Toolbar
          • Undo
        • 外部控制代码
          • 用于传递文件名代码
          • 有关路径的代码
          • 对话框显示代码
          • 日期和时间的代码
          • Codes for clipboard and variables
        • 命令修饰符参考
      • 脚本参考
        • 脚本对象
          • AboutData
          • ActivateListerData
          • ActivateTabData
          • AddCmdData
          • AddColData
          • AfterFolderChangeData
          • Alias
          • Aliases
          • Args
          • AudioCoverArt
          • AudioMeta
          • BeforeFolderChangeData
          • Blob
          • BusyIndicator
          • ClickData
          • ClipboardChangeData
          • CloseListerData
          • CloseTabData
          • Column
          • ColumnValue
          • Command
          • ConfigBackupData
          • ConfigRestoreData
          • Control
          • CustomFieldData
          • Date
          • Dialog
          • DialogListColumn
          • DialogListColumns
          • DialogListGroup
          • DialogListItem
          • DialogOption
          • DisplayModeChangeData
          • Dock
          • DocMeta
          • DOpus
          • DOpusFactory
          • DoubleClickData
          • DPI
          • Drive
          • ExeMeta
          • EverythingInterface
          • EverythingResult
          • Favorite
          • Favorites
          • File
          • FileAttr
          • FileGroup
          • FileOperationCompleteData
          • FileSize
          • FilesystemChangeData
          • FiletypeGroup
          • FiletypeGroups
          • Filter
          • FilterParseError
          • FlatViewChangeData
          • FolderEnum
          • FontMeta
          • Format
          • FSUtil
          • Func
          • GlobalFilters
          • GetCopyQueueNameData
          • GetCustomFieldData
          • GetNewNameData
          • HighlightedColumns
          • HTTPRequest
          • Image
          • ImageMeta
          • IncludeFileInitData
          • Item
          • Items
          • Lister
          • Listers
          • ListerResizeData
          • ListerUIChangeData
          • Map
          • Metadata
          • Msg
          • OpenListerData
          • OpenTabData
          • OrderedMap
          • OtherMeta
          • PairedFolder
          • Path
          • Progress
          • QuickFilter
          • Rect
          • Results
          • Script
          • ScriptColorPair
          • ScriptColumn
          • ScriptColumnData
          • ScriptCommand
          • ScriptCommandData
          • ScriptFAYTCommand
          • ScriptFAYTCommandData
          • ScriptConfig
          • ScriptConfigChangeData
          • ScriptInitData
          • ScriptStrings
          • ShellProperty
          • ShutdownData
          • Signature
          • SmartFavorite
          • SmartFavorites
          • SortOrder
          • SourceDestData
          • StartupData
          • StringSet
          • StringTools
          • StyleSelectedData
          • SysInfo
          • SystemSettingChangeData
          • Tab
          • TabClickData
          • TabGroup
          • TabGroups
          • TabGroupTabEntry
          • TabGroupTabList
          • TabStats
          • Toolbar
          • Toolbars
          • UnorderedSet
          • Var
          • Vars
          • Vector
          • Version
          • VideoMeta
          • Viewer
          • Viewers
          • ViewerEventData
          • Wild
          • WinVer
        • 脚本事件
          • OnAboutScript
          • OnActivateLister
          • OnActivateTab
          • OnAddColumns
          • OnAddCommands
          • OnAfterFolderChange
          • OnBeforeFolderChange
          • OnClick
          • OnClipboardChange
          • OnCloseLister
          • OnCloseTab
          • OnConfigBackup
          • OnConfigRestore
          • OnDisplayModeChange
          • OnDoubleClick
          • OnFilesystemChange
          • OnFileOperationComplete
          • OnFlatViewChange
          • OnGetCopyQueueName
          • OnGetCustomFields
          • OnGetNewName
          • OnInit
          • OnInitIncludeFile
          • OnListerResize
          • OnListerUIChange
          • OnOpenLister
          • OnOpenTab
          • OnScriptColumn
          • OnScriptCommand
          • OnScriptConfigChange
          • OnScriptFAYTCommand
          • OnShutdown
          • OnSourceDestChange
          • OnStartup
          • OnStyleSelected
          • OnSystemSettingChange
          • OnTabClick
          • OnViewerEvent
      • 求值器函数
        • AbortFunc
        • Abs
        • Age
        • Arg
        • As
        • Asc
        • Atan
        • Capitalize
        • Cbrt
        • Ceil
        • Chr
        • Cos
        • Clip
        • ClipFormat
        • Count
        • DateDiff
        • DatePart
        • DegToRad
        • DisplayName
        • Elapsed
        • Exists
        • FileCount
        • FileExt
        • FilePart
        • Floor
        • Format
        • Hypot
        • InStr
        • IsAlpha
        • IsChecked
        • IsDigit
        • IsDir
        • IsEnabled
        • IsFile
        • IsLower
        • IsParent
        • IsPath
        • IsPunct
        • IsSelected
        • IsSet
        • IsSpace
        • IsUpper
        • KeyDown
        • LanguageStr
        • LCase
        • Left
        • Len
        • MakeLegal
        • Match
        • Max
        • Mid
        • Min
        • Now
        • Output
        • Parent
        • PathType
        • Pow
        • RadToDeg
        • RegEx
        • RegExS
        • Replace
        • Resolve
        • Reverse
        • Right
        • Root
        • Rnd
        • Round
        • Running
        • Select
        • Sin
        • Space
        • Stem
        • StrCmp
        • String
        • Sqrt
        • Swap
        • SysInfo
        • Tan
        • Trim
        • Truncate
        • TypeOf
        • UCase
        • URLEncode
        • Val
      • DOpusRT 参考手册
        • 文件集合外部操作
        • 检索文件和文件夹信息
      • 元数据关键字
        • 列关键字
        • SetAttr META 的关键字
      • 文本过滤器
      • 图标集
        • 图标集 XML 定义文件
        • 图标大小
        • 图标名称
        • 图标显示名称
        • 图标类别
        • DPI aware Icon Sets
        • 本地化
        • 图标图像
      • 重命名宏语言
    • Directory Opus 13 的新功能有哪些?
      • Directory Opus 13 - 亮点
        • Highlights Page 1
        • Highlights Page 2
        • Highlights Page 3
        • Highlights Page 4
        • Highlights Page 5
        • Highlights Page 6
      • Directory Opus 13 - 详细变更列表
        • Directory Opus 13 - 详细发行说明
        • Directory Opus 13 - 详细的发行说明
        • Directory Opus 13 - 详细发行说明
        • Directory Opus 13 - 详细发布说明
        • Directory Opus 13 - 详细发行说明
        • Directory Opus 13 - 详细发行说明
        • Directory Opus 13 - 详细发行说明
        • Directory Opus 13 - 详细发布说明
        • Directory Opus 13 - 详细的发行说明
        • Directory Opus 13 - 详细发行说明
        • Directory Opus 13 - 详细发布说明
        • Directory Opus 13 - 详细发行说明
        • Directory Opus 13 - 详细发行说明
        • Directory Opus 13 - 详细发行说明
        • Directory Opus 13 - 详细发布说明
        • Directory Opus 13 - 详细发行说明
        • Directory Opus 13 - 详细版本说明
        • Directory Opus 13 - 详细版本说明
        • Directory Opus 13 - 详细发布说明
        • Directory Opus 13 - 发布说明详情
        • Directory Opus 13 - 详细版本说明
        • Directory Opus 13 - 详细发行说明
        • Directory Opus 13 - 详细发行说明
        • Directory Opus 13 - 详细发行说明
        • Directory Opus 13 - 详细发行说明
        • Directory Opus 13 - 详细发布说明
        • Directory Opus 13 - 发行说明详细
        • Directory Opus 13 - 详细的发行说明
        • Directory Opus 13 - 详细发行说明
        • Directory Opus 13 - 详细发行说明
        • Directory Opus 13 - 详细发行说明
        • Directory Opus 13 - 详细发行说明
        • Directory Opus 13 - 详细发行说明
        • Directory Opus 13 - 详细发行说明
        • Directory Opus 13 - 详细发行说明
        • Directory Opus 13 - 详细发行说明
        • Directory Opus 13 - 详细发行说明
        • Directory Opus 13 - 详细发行说明
        • Directory Opus 13 - 详细的发行说明
        • Directory Opus 13 - 详细发行说明
        • Directory Opus 13 - 详细发行说明
        • Directory Opus 13 - 详细版本说明
        • Directory Opus 13 - 详细的发行说明
        • Directory Opus 13 - 详细发行说明
        • Directory Opus 13 - 详细版本说明
      • Directory Opus 13 - 从 Opus 12 升级的提示
  • Manual
    • Copyrights
    • Licenses
      • End-user License Conditions
      • Volume License Conditions
    • Acknowledgements
    • Introduction
    • Basic Concepts
      • Starting Opus
      • The Lister
        • Opening a Lister
        • The Default Lister
        • Navigation
          • Home Folder
          • Up, Forward, Back
          • Folder Tree
          • Location Bar
            • Path Field
          • Drive Buttons and Dropdowns
          • Favorites
          • SmartFavorites
          • Recent and History Lists
          • Aliases
          • Paired Folders
        • Tabs
          • Tab Switcher
          • Locked Tabs
          • Linked Tabs
          • Tab Groups
        • View Modes
        • Dual Display
          • Navigation Lock
        • Toolbars
          • The Default Toolbars
            • Menu Toolbar
            • Operations Toolbar
            • Favorites Bar
            • File Display Toolbar
            • Images Toolbar
          • Dynamic Toolbars
          • Toolbar Sets
        • Find-as-you-type Field
        • Viewer Pane
        • Metadata Pane
        • Utility Panel
        • Layouts
        • Styles
        • Themes
          • Creating your own Themes
        • Status Bar
      • Explorer Replacement
      • Source and Destination
      • Selecting Files
        • Selecting with the mouse and keyboard
          • Single-click mode
          • Checkbox Mode
        • Simple Wildcard Selection
        • Advanced Selection
        • Selecting Cells
      • Searching and Filtering
        • Filter Bar
        • Show Everything
        • Toolbar Filter Fields
        • Quick Search
        • Find Files
          • Simple Find
          • Advanced Find
      • Sorting and Grouping
        • Manual Sorting
      • Folder Format
        • Folder Format Dialog
          • Columns
            • Frozen Columns
          • Sorting
          • Grouping
          • Display
          • Filters
        • Saved Folder Formats
        • Auto-remembered Formats
        • Content Types
        • Identifying the current format
        • Locking the Format
      • Expandable Folders
      • Flat View
      • Folder Sizes
      • Virtual File System
        • System virtual folders
        • File Collections
          • Stored Queries
        • Libraries
        • Archives
        • FTP
        • MTP
    • File Operations
      • Copying, Moving and Deleting Files
        • Copy and Paste
        • Drag and drop
        • Copying using the toolbar buttons
          • Using Wildcards when Copying
        • Copy Queues
          • Copy Overlays and Ghost Files
          • Unattended operation
        • The Jobs Bar
        • The Confirm File Replace Dialog
        • Copying Updated Files
          • Synchronize
        • Deleting Files
      • Renaming Files
        • Inline Rename
        • Simple Wildcard Rename
        • Advanced Rename
          • Rename Presets
          • Rename Modes
            • Standard Wildcard Rename
            • Find and Replace
            • Regular Expressions
            • Regular Expressions + Find and Replace
          • Rename Actions
            • Numbering Files
            • Rename Macros
          • Rename Options
          • Renaming with Metadata
          • Rename Scripts
      • Creating Folders
      • Creating Archives
        • Adding to Archives
        • Add to Archive Dialog
          • Zip Options
          • 7z Options
          • RAR Options
          • TAR BZip2 Options
          • TAR GZip Options
        • Zip Files
          • Zip Comment
          • Read-Only mode
          • Self-Extracting Zip Files
      • Tracking and Undoing File Operations
      • Changing Attributes
      • Labels and Status Icons
      • Editing Metadata
        • Document Properties
        • Picture Properties
        • Music Properties
          • Adding Cover Art
        • Video Properties
        • Extended Properties
        • Programmatic setting of Metadata
        • Time Shifting
      • File Descriptions
      • Filtered Operations
        • Filter Clauses
        • Adding, Removing and Editing Clauses
        • Filter Clause Types
        • Textual Filters
      • UAC and Administrator Mode
    • FTP
      • FTP Address Book
        • Default Settings
        • Site Page
        • Network Page
        • Display Page
        • Index Page
        • Sounds Page
        • Misc Page
        • Speed Page
        • Special Page
        • Transfer Page
        • Proxy Page
      • Adding a new Site
      • FTP Connect
      • Site Properties
      • FTP Log
      • FTP Paths
    • Additional Functionality
      • Viewing Images
        • Viewer Mouse, Keys and Toolbar
        • Image Marking
        • Lister-Linked Viewers
      • Playing Sounds
      • Image Conversion
        • Automated image conversion tasks
      • Print Folder
      • Duplicate File Finder
      • Splitting Files
      • Joining Files
      • Making Links and Junctions
      • Floating Toolbars
        • Controlling Floating Toolbars
      • System-wide Hotkeys
      • Exporting to USB
      • Integration with Everything
      • Erase Empty Space
      • File Type Summary
      • Update Checker
      • CLI
      • Crash Logs
    • Preferences
      • Backing up and Restoring Preferences
      • Preferences Categories
        • Colors And Fonts
          • Dark Mode
          • Themes
          • Color Blending
          • Directory Opus Colors
          • Windows Colors
          • Images
          • Fonts
        • File Displays
          • Folder Expansion
          • Mouse
            • Background Events
          • Navigation
          • Options
            • Info Tips
            • Tab Key
          • Status Bar
          • Title Bar
        • File Display Columns
          • Appearance
          • Evaluator Columns
          • Evaluator Groups
          • Filenames
          • Icons
          • Options
          • Shell Properties
        • File Display Modes
          • Details
          • Power Mode
            • Appearance
            • Buttons
          • Thumbnails
            • Folders
            • Performance
            • Styles
          • Tiles Mode
        • File Operations
          • Copying Files
            • Attributes
            • Confirmation
            • Metadata
            • Security
          • Deleting Files
          • Double-click Files
            • FTP
          • Logging
          • Metadata
            • Metadata Editor
            • Music Genres
          • Options
          • Progress Indicators
            • Counting Files
            • Jobs Bar
          • Renaming Files
            • Control Keys
        • Filtering And Sorting
          • Filters
          • Filter Bar
          • Find-As-You-Type
            • Filter Mode
            • Find Mode
            • Folders Mode
          • Global Filters
          • Quick Keys
          • Sorting
        • Folders
          • Automatic Reading
          • Folder Formats
            • Automatic Formats
          • Folder Images
          • Folder Sizes
            • Junctions And Links
          • Network Servers
          • Special Folders
          • Virtual Folders
            • Desktop
            • File System
            • This PC
        • Folder Tabs
          • Dimensions
          • Edge Colors
          • Folder Tab Bar
          • Groups
          • Locking
          • Options
        • Folder Tree
          • Appearance
          • Contents
          • Expand / Collapse
            • Pins
          • Options
          • Selection Events
        • Frequently Used Paths
          • Favorites List
          • Folder Aliases
          • Home Folder
          • Paired Folders
          • Recent List
          • SmartFavorites
        • Internet
          • Email
          • Updates
        • Labels
          • Label Definitions
          • Label Assignments
            • In Specific Folders
          • Options
        • Launching Opus
          • Explorer Replacement
          • From the Desktop
          • From the Taskbar Icon
          • From the Win + E hotkey
          • Startup
        • Layouts and Styles
          • Default Lister
          • Layouts
          • Styles
        • Location Bar
          • Options
          • Path Fields
            • Appearance
            • Menus
            • Path Completion
          • Toolbars
        • Miscellaneous
          • Advanced
          • External Tools
          • Privacy
          • Shell Extensions
          • Sounds
          • Windows Integration
            • Jump List
          • Windows Startup Delay
        • Toolbars
          • Appearance
          • Folder Toolbars
          • Icons
          • Options
          • Sets
          • View Mode Toolbars
        • User Interface
          • Language
          • Spacing
          • Transition Animations
        • Viewer
          • Standalone Viewer
            • Options
            • Size And Position
            • Mouse Buttons
            • Marked Pictures
            • Slideshow
          • Viewer Pane
          • Viewer Plugins
        • Zip and Other Archives
          • Archive and VFS Plugins
          • Archive Options
          • Context Menu
          • Zip Files
    • Customize
      • The Customize Dialog
        • Toolbars
        • Context Menus
        • Keys
        • Commands
        • User Commands
        • Default Toolbars
      • Creating your own buttons
        • Editing the Toolbar
          • Launch Options
          • Toolbar Context Menus
          • Multiple Function Buttons
          • Drop-down Buttons and Menus
          • Dynamic Buttons
            • Drive Buttons Configuration
          • Field Buttons
            • Path Field Configuration
            • Filter Field Configuration
            • Drives Dropdown Configuration
          • Sharing functions with others
        • Command Editor
          • Simple Command Editor
          • Advanced Command Editor
          • Using the Hotkey Control
        • User-defined commands
        • Synchronous and Asynchronous functions
        • Internal Command Arguments
        • Passing files to external programs
        • Command modifiers
        • MS-DOS Batch commands
        • WSL Commands
        • Embedding Rename Scripts
        • DDE Functions
        • Embedded functions
    • File Types
      • Directory Opus File Types
      • File Type Groups
      • Filetype Editor
        • Actions
        • Events
        • Context Menu
        • Drop Menu
        • Replace Menu
        • Info Tip
        • Tiles Mode
    • Scripting
      • Rename Scripts
        • Custom Fields in the Rename Dialog
      • Script Functions
      • Script Add-ins
        • Include Files
        • Modules
        • Script Package
        • Script Installer Files
      • Script Management
        • Create New Script
        • Script Installer
      • Script Editor
        • Script Assets
        • Editors
          • Code Editor
          • Dialog Editor
            • Dialog Editor Commands
            • Adding Dialog Controls
            • Sizing and Positioning Dialog Controls
            • Using the Layout Commands
            • Dialog Control Tab Order
            • Dialog Control Mnemonics
            • Language Overlays
            • Dialog Control Properties
              • Common Dialog Properties
              • Dialog Properties
              • Static Text Properties
              • Markup Text Properties
              • Edit Control Properties
              • Button Properties
              • Check Box Properties
              • Radio Button Properties
              • Combo Box Properties
              • List Box Properties
              • List View Properties
              • Tab Control Properties
              • Group Box Properties
              • Palette Properties
          • String Editor
        • Snippets
      • Script Dialogs
        • Creating Script Dialogs
        • The Dialog Message Loop
          • Simple Dialogs
          • Detached Dialogs
        • Reading Dialog Control Values
        • Interacting with Dialog Controls
      • Resources
        • String Resources
      • Script Log
      • Example Scripts
        • Example Rename Script
        • Simple Script Function
        • Adding a new Internal Command
        • Adding a new Column
        • Adding a new Column from Shell Properties
        • Extending the FAYT Field
        • Simple Dialogs and Popup Menus
        • Script Dialog Example
        • Responding to Events
    • Evaluator
      • Grammar
      • Variables
      • Applicable Contexts
        • Evaluator Columns
        • Evaluator Groups
        • Filters and Find
        • Info Tips and Tiles
        • Buttons and Functions
          • Labels
          • Colors
          • Icons
          • Tooltips
          • Dynamic State
          • Conditional Behavior
          • Evaluation Clauses
          • Insertion Code
          • Command Lines
        • Rename
        • Generated File Names
        • Rename Control Keys
        • Status Bar
        • Column Context Menus
        • Tab Context Menus
      • Examples
    • Reference
      • Wildcard Reference
        • Pattern Matching Syntax
        • Regular Expression Syntax
      • Status Bar Codes
        • Codes for file and folder counts
        • Codes for disk space
        • Codes for music and video duration
        • Codes for graphical elements
        • Other Codes
        • Bar graphs and Percentages
        • Hiding sections on the status bar
        • Padding sections on the status bar
      • Command Reference
        • Argument Types
        • Internal Commands
          • CLI
          • Clipboard
          • Close
          • ContextMenu
          • Copy
          • CreateFolder
          • Delete
          • Favorites
          • FileType
          • Find
          • GetSizes
          • Go
          • Help
          • Image
          • Join
          • Marker
          • Play
          • Prefs
          • Print
          • Properties
          • Recent
          • Rename
          • Select
          • Set
          • SetAttr
          • Show
          • Split
          • Toolbar
          • Undo
        • External control codes
          • Codes for passing filenames
          • Codes for passing paths
          • Codes to display dialogs
          • Codes for date and time
          • Codes for clipboard and variables
        • Command modifier reference
      • Scripting Reference
        • Scripting Objects
          • AboutData
          • ActivateListerData
          • ActivateTabData
          • AddCmdData
          • AddColData
          • AfterFolderChangeData
          • Alias
          • Aliases
          • Args
          • AudioCoverArt
          • AudioMeta
          • BeforeFolderChangeData
          • Blob
          • BusyIndicator
          • ClickData
          • ClipboardChangeData
          • CloseListerData
          • CloseTabData
          • Column
          • ColumnValue
          • Command
          • ConfigBackupData
          • ConfigRestoreData
          • Control
          • CustomFieldData
          • Date
          • Dialog
          • DialogListColumn
          • DialogListColumns
          • DialogListGroup
          • DialogListItem
          • DialogOption
          • DisplayModeChangeData
          • Dock
          • DocMeta
          • DOpus
          • DOpusFactory
          • DoubleClickData
          • DPI
          • Drive
          • ExeMeta
          • EverythingInterface
          • EverythingResult
          • Favorite
          • Favorites
          • File
          • FileAttr
          • FileGroup
          • FileOperationCompleteData
          • FileSize
          • FilesystemChangeData
          • FiletypeGroup
          • FiletypeGroups
          • Filter
          • FilterParseError
          • FlatViewChangeData
          • FolderEnum
          • FontMeta
          • Format
          • FSUtil
          • Func
          • GlobalFilters
          • GetCopyQueueNameData
          • GetCustomFieldData
          • GetNewNameData
          • HighlightedColumns
          • HTTPRequest
          • Image
          • ImageMeta
          • IncludeFileInitData
          • Item
          • Items
          • Lister
          • Listers
          • ListerResizeData
          • ListerUIChangeData
          • Map
          • Metadata
          • Msg
          • OpenListerData
          • OpenTabData
          • OrderedMap
          • OtherMeta
          • PairedFolder
          • Path
          • Progress
          • QuickFilter
          • Rect
          • Results
          • Script
          • ScriptColorPair
          • ScriptColumn
          • ScriptColumnData
          • ScriptCommand
          • ScriptCommandData
          • ScriptFAYTCommand
          • ScriptFAYTCommandData
          • ScriptConfig
          • ScriptConfigChangeData
          • ScriptInitData
          • ScriptStrings
          • ShellProperty
          • ShutdownData
          • Signature
          • SmartFavorite
          • SmartFavorites
          • SortOrder
          • SourceDestData
          • StartupData
          • StringSet
          • StringTools
          • StyleSelectedData
          • SysInfo
          • SystemSettingChangeData
          • Tab
          • TabClickData
          • TabGroup
          • TabGroups
          • TabGroupTabEntry
          • TabGroupTabList
          • TabStats
          • Toolbar
          • Toolbars
          • UnorderedSet
          • Var
          • Vars
          • Vector
          • Version
          • VideoMeta
          • Viewer
          • Viewers
          • ViewerEventData
          • Wild
          • WinVer
        • Scripting Events
          • OnAboutScript
          • OnActivateLister
          • OnActivateTab
          • OnAddColumns
          • OnAddCommands
          • OnAfterFolderChange
          • OnBeforeFolderChange
          • OnClick
          • OnClipboardChange
          • OnCloseLister
          • OnCloseTab
          • OnConfigBackup
          • OnConfigRestore
          • OnDisplayModeChange
          • OnDoubleClick
          • OnFilesystemChange
          • OnFileOperationComplete
          • OnFlatViewChange
          • OnGetCopyQueueName
          • OnGetCustomFields
          • OnGetNewName
          • OnInit
          • OnInitIncludeFile
          • OnListerResize
          • OnListerUIChange
          • OnOpenLister
          • OnOpenTab
          • OnScriptColumn
          • OnScriptCommand
          • OnScriptConfigChange
          • OnScriptFAYTCommand
          • OnShutdown
          • OnSourceDestChange
          • OnStartup
          • OnStyleSelected
          • OnSystemSettingChange
          • OnTabClick
          • OnViewerEvent
      • Evaluator Functions
        • AbortFunc
        • Abs
        • Age
        • Arg
        • As
        • Asc
        • Atan
        • Capitalize
        • Cbrt
        • Ceil
        • Chr
        • Cos
        • Clip
        • ClipFormat
        • Count
        • DateDiff
        • DatePart
        • DegToRad
        • DisplayName
        • Elapsed
        • Exists
        • FileCount
        • FileExt
        • FilePart
        • Floor
        • Format
        • Hypot
        • InStr
        • IsAlpha
        • IsChecked
        • IsDigit
        • IsDir
        • IsEnabled
        • IsFile
        • IsLower
        • IsParent
        • IsPath
        • IsPunct
        • IsSelected
        • IsSet
        • IsSpace
        • IsUpper
        • KeyDown
        • LanguageStr
        • LCase
        • Left
        • Len
        • MakeLegal
        • Match
        • Max
        • Mid
        • Min
        • Now
        • Output
        • Parent
        • PathType
        • Pow
        • RadToDeg
        • RegEx
        • RegExS
        • Replace
        • Resolve
        • Reverse
        • Right
        • Root
        • Rnd
        • Round
        • Running
        • Select
        • Sin
        • Space
        • Stem
        • StrCmp
        • String
        • Sqrt
        • Swap
        • SysInfo
        • Tan
        • Trim
        • Truncate
        • TypeOf
        • UCase
        • URLEncode
        • Val
      • DOpusRT Reference
        • External Manipulation of File Collections
        • Retrieving File and Folder Information
      • Metadata Keywords
        • Keywords for Columns
        • Keywords for SetAttr META
      • Textual Filters
      • Icon Sets
        • Icon Set XML Definition File
        • Icon Sizes
        • Icon Names
        • Icon Display Names
        • Icon Categories
        • DPI aware Icon Sets
        • Localization
        • Icon Images
      • Rename Macro Language
    • New In Directory Opus 13
      • Directory Opus 13 (Highlights)
        • Highlights Page 1
        • Highlights Page 2
        • Highlights Page 3
        • Highlights Page 4
        • Highlights Page 5
        • Highlights Page 6
      • Directory Opus 13 (Detailed)
        • Dark Mode & Cosmetics
        • File Copying
        • Everything (indexed search)
        • Evaluator
        • Lister Defaults
        • Folder Tree
        • File Display
        • Thumbnails
        • Folder Tabs
        • Location Bar
        • Filter Bar
        • Find As You Type (FAYT)
        • Search Field
        • Find Files
        • Duplicate Files Finder
        • Synchronize
        • Other Utility Panels
        • Metadata
        • Columns
        • Folder Sizes
        • Status Bar
        • Rename
        • Viewer
        • Image Converter
        • File & Folder Labels
        • Folder Aliases
        • Folder Formats
        • Preferences
        • Customize
        • Default Toolbars & Menus
        • Script IDE
        • File Types
        • Set Attributes
        • Print / Export Folder Listing
        • Split / Join
        • Archives
        • Cloud Storage
        • User Interface Spacing
        • Virtual Desktops
        • Shell Extensions
        • Miscellaneous Features
        • Miscellaneous Fixes & Workarounds
        • Miscellaneous Commands
        • Miscellaneous Scripting
        • Removed Functionality
      • Tips for Upgrading from Opus 12
由 GitBook 提供支持
在本页
在GitHub上编辑
  1. Manual
  2. Reference
  3. Command Reference
  4. External control codes

Codes for passing filenames

The following codes are used to pass the names of selected files to external programs. The filename codes available offer all possible combinations of the following five criteria:

  • Full paths or filename only - whether the full path and name of selected items are passed (e.g. C:\Program Files\GPSoftware\Directory Opus\dopus.exe) or just the filename (e.g. dopus.exe).

  • One at a time or all at once - when multiple files are selected, this determines whether a command is repeated once for each selected file, or run once only, with all selected filenames passed on the same command line (separated by spaces).

  • Selected items required or not required - when selected items are required and none are selected, the command will not be run at all. When selected items are not required, the command will still be run and it will act as if the filename 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.

  • Source or destination file display - in a dual-display Lister, you can pass selected files from the destination file display as well as from the source.

The long form of each code is built from a combination of keywords that reflect the five criteria. If a long code ends in a $ sign it is the "selected items required" form of the code - it is said to "need" selected items.

Long form
Short form
Description

{filepath}

{f!}

Passes the full path and filename of each selected item. Files are passed one at a time - a command that uses this code will be repeated once for each additional selected item. If no files are selected the command will still be run, passing an empty string for this code. Full paths, one at a time, selected items not required, long filenames, source file display

{filepath$}

{f}

The "need" form of {filepath} (requires at least one selected item in the file list). Full paths, one at a time, selected items required, long filenames, source file display

{file}

{o!}

Passes the filename only of each selected item (without its path). Multiple files are passed one at a time. Filenames only, one at a time, selected items not required, long filenames, source file display

{file$}

{o}

The "need" form of {file}. Filenames only, one at a time, selected items required, long filenames, source file display

{allfilepath}

{F!}

Passes the full path and filename of all selected items at once. The command will only be run once, no matter how many items are selected - the names of all selected items will be passed on the command line separated by spaces. You can use the sep= modifier (described below) to specify an alternative separator character. Full paths, all at once, selected items not required, long filenames, source file display

{allfilepath$}

{F}

The "need" form of {allfilepath}. Full paths, all at once, selected items required, long filenames, source file display

{allfile}

{O!}

Passes the filename only of all selected items at once. File paths are not passed. Filenames only, all at once, selected items not required, long filenames, source file display

{allfile$}

{O}

The "need" form of {allfile}. Filenames only, all at once, selected items required, long filenames, source file display

{filepathshort}

{fs!}

Passes the full path and filename of each selected item, in short (8.3) format. This is useful for running 16 bit programs or other legacy software that can't handle long filenames. Full paths, one at a time, selected items not required, short filenames, source file display

{filepathshort$}

{fs}

The "need" form of {filepathshort}. Full paths, one at a time, selected items required, short filenames, source file display

{fileshort}

{os!}

Passes the filename only (no paths) of each selected item, in short (8.3) format. Filenames only, one at a time, selected items not required, short filenames, source file display

{fileshort$}

{os}

The "need" form of {fileshort}. Filenames only, one at a time, selected items required, short filenames, source file display

{allfilepathshort}

{Fs!}

Passes the short (8.3) form of the full path and filename of all selected items at once. Full paths, all at once, selected items not required, short filenames, source file display

{allfilepathshort$}

{Fs}

The "need" form of {allfilepathshort}. Full paths, all at once, selected items required, short filenames, source file display

{allfileshort}

{Os!}

Passes the filename only of all selected items at once, in short (8.3) format. Filenames only, all at once, selected items not required, short filenames, source file display

{allfileshort$}

{Os}

The "need" form of {allfileshort}. Filenames only, all at once, selected items required, short filenames, source file display

{filepathdest}

{fd!}

Passes the full path and filename of each selected item in the destination file display. Files are passed one at a time - a command that uses this code will be repeated once for each additional selected item. If no files are selected in the destination, or there is currently no destination, the command will still be run, passing an empty string for this code. Full paths, one at a time, selected items not required, long filenames, destination file display

{filepathdest$}

{fd}

The "need" form of {filepathdest}. If there are no files selected in the destination, or there is currently no destination, the command will not be executed. Full paths, one at a time, selected items required, long filenames, destination file display

{filedest}

{od!}

Passes the filename only of each selected item from the destination file display (without its path). Multiple files are passed one at a time. Filenames only, one at a time, selected items not required, long filenames, destination file display

{filedest$}

{od}

The "need" form of {filedest}. Filenames only, one at a time, selected items required, long filenames, destination file display

{allfilepathdest}

{Fd!}

Passes the full path and filename of all selected items, from the destination file display, all at once. The command will only be run once, no matter how many items are selected - the names of all selected items will be passed on the command line separated by spaces. Full paths, all at once, selected items not required, long filenames, destination file display

{allfilepathdest$}

{Fd}

The "need" form of {allfilepathdest}. Full paths, all at once, selected items required, long filenames, destination file display

{allfiledest}

{Od!}

Passes the filename only of all selected items at once, from the destination file display. File paths are not passed. Filenames only, all at once, selected items not required, long filenames, destination file display

{allfiledest$}

{Od}

The "need" form of {allfiledest}. Filenames only, all at once, selected items required, long filenames, destination file display

{filepathshortdest}

{fsd!}

Passes the full path and filename of each selected item, in short (8.3) format, from the destination file display. This is useful for running 16 bit programs or other legacy software that can't handle long filenames. Full paths, one at a time, selected items not required, short filenames, destination file display

{filepathshortdest$}

{fsd}

The "need" form of {filepathshortdest}. Full paths, one at a time, selected items required, short filenames, destination file display

{fileshortdest}

{osd!}

Passes the filename only (no paths) of each selected item in the destination file display, in short (8.3) format. Filenames only, one at a time, selected items not required, short filenames, destination file display

{fileshortdest$}

{osd}

The "need" form of {fileshortdest}. Filenames only, one at a time, selected items required, short filenames, destination file display

{allfilepathshortdest}

{Fsd!}

Passes the short (8.3) form of the full path and filename of all selected items at once, from the destination file display. Full paths, all at once, selected items not required, short filenames, destination file display

{allfilepathshortdest$}

{Fsd}

The "need" form of {allfilepathshortdest}. Full paths, all at once, selected items required, short filenames, destination file display

{allfileshortdest}

{Osd!}

Passes the filename only of all selected items at once, in short (8.3) format, from the destination file display. Filenames only, all at once, selected items not required, short filenames, destination file display

{allfileshortdest$}

{Osd}

The "need" form of {allfileshortdest}. Filenames only, all at once, selected items required, short filenames, destination file display

The filename codes all support the following modifiers. These can be added to the control code sequence using a vertical bar (|) to separate the filename code from the modifier - for example, {file|noext} strips the file extension from the returned filename. Multiple modifiers can be provided using additional vertical bars to separate them - for example {file|noext|escwild} combines both noext and escwild together.

Modifier
Description

noext

Strips the filename extension from filenames. For example, if {file} returned cat_photo.jpg then {file|noext} would return cat_photo. Note that if the item is a folder then its name will not be changed, even if it contains a dot, as folders are not considered to have file extensions.

ext

Returns only the filename extension (the opposite of noext). For example, if {file} returned cat_photo.jpg then {file|ext} would return .jpg. Note that if the item is a folder then nothing is returned, even the folder's name contains a dot.

ext2

Returns the filename extension without the dot. For example, if {file|ext} returned .jpg then {file|ext2} would return jpg.

ext=<ext>

Replaces the original filename extension with the specified one. For example, {file|ext=tmp} would return the name of each selected file with the extension changed to .tmp. Folder names are not changed, even if they contain dots.

escbackslash

Automatically escapes any occurrences of \ in the filename, turning them into \. This can be necessary when using codes like {filepath} to insert paths into strings which will have sequences like \n and \ interpreted specially. For example, a command to add the selected file from the source and the selected file from the destination to the clipboard on separate lines:

In this example, if the source file was C:\New Folder\test.txt then it would be converted to C:\New Folder\text.txt. If the sequence had not been escaped, it would have removed the letter N from the path and put ew Folder\text.txt on a separate line. (There are more subtle cases when dealing with folder paths, but they are less important with file paths.)

escforfilter

Intended for inserting paths into inline filter definitions. The same as escbackslash and escwild combined, but easier to remember and less to type.

escnl

escregex escregexp

escwild

file

Redirects the filenames to a temporary text file. This is useful with external programs that can accept a list of files from a text file rather than on the command line. (In turn, that is useful because command lines have a maximum length which may limit the number of filenames you can pass directly.) The name of the temporary file is passed on the command line in place of the filenames themselves. In the text file, each filename is separated by a space. If a filename or its path contains an embedded space it will be surrounded by quotes. For example, {allfilepath|file}.

filem

The same as file except that each filename is written to a separate line in the text file. For example, {allfilepath|filem}.

fileq

The same as file except that each filename is always surrounded by quotes, whether it contains an embedded space or not. For example, {allfilepath|fileq}.

filemq

The same as filem except that each filename is always surrounded by quotes. For example, {allfilepath|filemq}.

utf8

Forces the file written by file, filem or fileq to use UTF-8 format. For example, {allfilepath|filem|utf8}.

ucsle

Forces the file written by file, filem or fileq to use UCS-16LE format. For example, {allfilepath|filem|ucsle}.

ucsbe

Forces the file written by file, filem or fileq to use UCS-16BE format. For example, {allfilepath|filem|ucsbe}.

urlencode

nobom

Prevents a BOM from being written that identifies the file type. For example, {allfilepath|filem|utf8|nobom}.

cronly

When used with filem or filemq, makes it so the file has only CR (carriage return) characters between each line. The default is CR,LF pairs as is standard on Windows. For example, {allfilepath|filem|cronly}.

lfonly

When used with filem or filemq, makes it so the file has only LF (line feed) characters between each line. The default is CR,LF pairs as is standard on Windows. For example, {allfilepath|filem|lfonly}.

nopath

Returns only the final component of the path. For example, if {filepath} returns C:\Program Files\GPSoftware\Directory Opus\, {filepath|nopath} would return Directory Opus\. You would normally use something like {file} to get just the name of something, but using {filepath|nopath} has the subtle difference of including the \ on the end of the name when the item is a folder.

noroot

Removes the root (i.e. the first component) from the file's path. For example, if {filepath} returns C:\Windows\Notepad.exe, {filepath|noroot} would return Windows\Notepad.exe. With UNC network paths, the result is relative to the share, with the computer and share itself removed. With FTP paths, the result is relative to the site's root and excludes the site itself. You can combine noroot with .. to get a parent path with the root removed. For example, {filepath|..|noroot}

noshort

Suppresses automatic shortening of file paths which are longer than 260 characters. Opus itself can handle very long paths but many Windows programs cannot. When sending very long paths to external programs, Opus normally uses the short (8.3) versions to reduce problems. Use noshort to prevent this when you know the target program can cope. For example, {filepath|noshort}.

noterm

Removes the trailing path separator from folder paths. For example, {filepath} might return C:\Program Files\ whereas {filepath|noterm} would return C:\Program Files.

notermdrive

Similar to noterm, but also removes the trailing path separator when the resultant path is a drive root with no sub-directory. For example, both {sourcepath} and {sourcepath|noterm} might return C:\ whereas C: would be returned by {sourcepath|notermdrive}. Drive roots are a special case in Windows and generally require a trailing backslash, but there are exceptions (like the Windows subst command) where the backslash must be omitted.

subdir

Replaces characters in the file's path so that the full path can be added below another path. For example, {filepath|subdir} might return C;\Windows\Notepad.exe. Note that a semi-colon has replaced the colon, allowing the path to be used relative to another directory, say if you wanted to create a backup of the file called D:\Backups\C;\Windows\Notepad.exe.

regex

Allows testing and manipulation of the filename.

If your regular expression contains a | symbol, you should enclose the whole pattern in quotes.

{file|regex=<pattern>)

only process the file if the pattern matches; otherwise it will be skipped

{file|regex=<pattern>|to=<new name>)

output the result of the regular expression search and replace (only if the pattern matches)

{file|regex!=<pattern>|to=<new name>)

as above, but if the pattern doesn't match it outputs the original filename unchanged

cleanfilename

Replaces any illegal filename characters in the string, and also replaces all path separators and colons, so the string can be used as a filename without it adding any additional path levels. Similar to subdir in this context, but it also replaces path separators.

cleanfilepath

Replaces any illegal filename characters in the string, while leaving path separators and colons. (Colons are only left in if they are part of a drive letter at the start of the string.) Should be used when the string can be an absolute path. (Will not usually have an effect in this context, given the input should already a valid file name or path. More useful with clipboard data.)

cleanfilepathrel

Replaces any illegal filename characters in the string, also replacing colons and "\" UNC path initiators, so the string can be used as a subdirectory under another path. Similar to subdir in this context, given the input is already a file name or path. (Unlike subdir, cleanfilepathrel can also be used with arbitrary clipboard input.)

wsl

Returns the path in WSL (Windows System for Linux) format (e.g. /mnt/c/Program Files/ instead of C:\Program Files).

sep=

Lets you specify an alternative separator for codes that insert multiple filenames on the one line. For example, {allfilepath} normally inserts all selected filepaths separated by spaces. You could use {allfilepath|sep=,} to have the filepaths comma-separated instead.

..

Modifies the code to refer to the selected item's parent folder rather than the item itself. You can pass multiple .. modifiers separated by \ to return folders higher up the tree. For example {filepath|..\.} would return the name of the item's parent's parent.

\

Modifies the code to refer to the root of the drive of the selected item. For example {filepath|\ might return C:\.

driveletter

Modifies the code to refer to the drive letter, on its own, at the start of the selected item's path. For example {filepath|driveletter} might return C. If the path is not relative to a drive letter, the whole path will be inserted as-is. You can also use {filepath|\ to get something like C:\, or {filepath|\notermdrive} to get something like C:, while handling non-drive roots (e.g. UNC paths) differently.

drivelabel

Modifies the code to refer to the label for the drive letter at the start of the selected item's path. For example {filepath|drivelabel} might return System. If the path is not relative to a drive letter, the whole path will be inserted as-is.

In addition to the above codes, the following control codes are supported to provide compatibility with Windows Explorer. They can not be used in MS-DOS batch functions.

Modifier
Equivalent To

%1

{filepath}

%2

{filepath}

%L

{filepath}

%V

{filepath} if anything is selected; {sourcepath} otherwise

%*

{allfilepath}

上一页External control codes下一页Codes for passing paths

最后更新于1年前

EXPANDNEWLINES SET {filepath|escbackslash}\n{filepathdest|escbackslash}.

Automatically escapes any occurrences of in the filename, turning them into . (This is a weaker version of escbackslash, above. You should probably use escbackslash instead.) Using escnl helps when using codes like {filepath} as the message text for a dialog code like . For example, the path C:\New Folder\test.txt would be converted to C:\New Folder\test.txt. If the sequence wasn't escaped, it would have been converted into a line-break in the dialog message text.

Automatically escapes any regular expression characters in the filename. Used when passing filenames to internal commands that understand , in case a filename contains characters like \, ., ( and ) which have special meaning to some functions. For example, {file|escregexp|noext} would turn Accounts (2010).xls into Accounts \2010\. For convenience, both the "regex" and "regexp" spellings are allowed and do the same thing.

Automatically escapes any wildcard characters in the filename. Used when passing filenames to internal commands that understand , in case a filename contains characters like ( and ) which have special meaning to some functions. For example, {file|escwild|noext} would turn Accounts (2010).xls into Accounts '(2010').

URL-encodes the filename it adds to the command line. Useful if you want to pass the filename to the Internet in some way. For example, you could have a context menu command which does an automatic Google search for the selected filename with: }

{file|regex=<pattern>)

only process the file if the pattern matches; otherwise it will be skipped

{file|regex=<pattern>|to=<new name>)

output the result of the regular expression search and replace (only if the pattern matches)

{file|regex!=<pattern>|to=<new name>)

as above, but if the pattern doesn't match it outputs the original filename unchanged

Clipboard
{dlgstring}
regular expressions
standard wildcards
https://www.google.com/search?q={file|urlencode