大网数据广告活动
启动与系统组件

Long paths with spaces require quotation marks

· 52CE 我爱测

Solves an issue that occurs when you specify long filenames or paths with spaces.

This article provides a solution to an issue that occurs when you specify long filenames or paths with spaces.

Original KB number:   102739

Symptoms

The following error message is given when specifying long filenames or paths with spaces in Windows NT:

The system cannot find the file specified

Cause

Long filenames or paths with spaces are supported by NTFS in Windows NT. However, these filenames or directory names require quotation marks around them when they are specified in a command prompt operation. Failure to use the quotation marks results in the error message.

Resolution

Use quotation marks when specifying long filenames or paths with spaces. For example, typing the copy c:\my file name d:\my new file name command at the command prompt results in the following error message:

The system cannot find the file specified.

The correct syntax is:

copy "c:\my file name" "d:\my new file name"

Note: The quotation marks must be used.

More information

Spaces are allowed in long filenames or paths, which can be up to 255 characters with NTFS. All operations at the command prompt involving long names with spaces, however, must be treated differently. Normally, it is an MS-DOS convention to use a space after a word to specify a parameter. The same convention is being followed in Windows NT command prompt operations even when using long filenames.

Data collection

If you need assistance from Microsoft support, we recommend you collect the information by following the steps mentioned in Gather information by using TSS for deployment-related issues.

Source: Microsoft Learn / IT Pro troubleshooting 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 / IT Pro troubleshooting
适用范围
- Supported versions of Windows Server · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

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

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