大网数据广告活动
安装更新与部署

Filename

· 52CE 我爱测

The Filename data type is a text string containing a file name or folder.

The Filename data type is a text string containing a file name or folder. By default, the file name is assumed to use short file name syntax; that is, eight-character name, period (.), and 3-character extension. A short file name must always be provided because the SHORTFILENAMES property may be set or the target volume for the installation may only support short file names.

To include a long file name with the short file name, separate it from the short file name with a vertical bar (|).

For example, the following two strings are valid:

  • status.txt
  • projec~1.txt|Project Status.txt

Short and long file names must not contain the following characters:

  • slash (/) or (\)
  • question mark (?)
  • vertical bar (|)
  • right angle bracket (>)
  • left angle bracket (<)
  • colon (:)
  • asterisk (*)
  • quotation mark (")

In addition, short file names must not contain the following characters:

  • plus sign (+)
  • comma (,)
  • semicolon (;)
  • equals sign (=)
  • left square bracket ([)
  • right square bracket (])

No space is allowed preceding the vertical bar (|) separator for the short file name/long file name syntax. Short file names may not include a space, although a long file name may. A space can exist after the separator only if the long file name of the file name begins with the space. No full-path syntax is allowed.

Note:
The format of the FileName column of the MsiEmbeddedUI table is like the format Filename data type except that the vertical bar (|) separator for the short file name/long file name syntax is not available.

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。