如何为无法处理文件路径中的空格的程序指定没有空格的 C:\Program Files?

编程入门 行业动态 更新时间:2024-10-22 04:49:40
本文介绍了如何为无法处理文件路径中的空格的程序指定没有空格的 C:\Program Files?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

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

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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-25 23:11:47,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1125480.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:空格   何为   路径   文件   程序

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!