如何将有空间的目录路径传递给windows shell? [英] How to pass directory path that have space to windows shell?

查看:18
本文介绍了如何将有空间的目录路径传递给windows shell?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 IEcapt.exe 来捕获网站快照.问题是,它无法处理有空间的路径目录.像这样:

I am using IEcapt.exe to capture website snapshot. The problem is, it cannot handle path directory that have space. Like this:

c:\program files\

有什么办法可以传递这样的目录以使其工作吗?

Is there any way how I can pass directory like this to make it work?

推荐答案

通常只需双引号 Windows 路径即可:

Usually just double-quoting windows paths will work:

IEcapt.exe "C:\Program Files\some path"

如果这真的不起作用,您可以使用 8.3 文件名,或者对于程序文件,%programfiles% 变量.

If that really doesn't work, you might be able to get away with using the 8.3 filename or, in the case of program files, the %programfiles% variable.

这篇关于如何将有空间的目录路径传递给windows shell?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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