如何为无法处理文件路径中的空格的程序指定没有空格的 C:\Program Files? [英] How do I specify C:\Program Files without a space in it for programs that can't handle spaces in file paths?

查看:44
本文介绍了如何为无法处理文件路径中的空格的程序指定没有空格的 C:\Program Files?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个配置文件需要另一个文件的位置,

A configuration file needs position of another file,

但该文件位于C:\Program Files"中,

but that file is located in "C:\Program Files",

其中有空格的路径无法识别,

and the path with space in it is not recognized,

有没有其他方法可以指定没有空格的位置?

Is there another way to specify the location without space in it?

推荐答案

你应该可以使用

  • "c:\Program Files"(注意引号)
  • c:\PROGRA~1(简称表示法)
  • "c:\Program Files" (note the quotes)
  • c:\PROGRA~1 (the short name notation)

尝试 c:\> dir/x(在 dos shell 中)

Try c:\> dir /x (in dos shell)

这会显示短名称为非 8dot3 文件名生成.格式是/N 的在长名称之前插入短名称姓名.如果不存在短名称,空白显示在其位置.

This displays the short names generated for non-8dot3 file names. The format is that of /N with the short name inserted before the long name. If no short name is present, blanks are displayed in its place.

这篇关于如何为无法处理文件路径中的空格的程序指定没有空格的 C:\Program Files?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆