如何写有空间的文件夹名的批处理文件的完整路径? [英] How to write a full path in a batch file having a folder name with space?

查看:186
本文介绍了如何写有空间的文件夹名的批处理文件的完整路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在批处理文件中写入以下命令

I am writing following command in batch file

REGSVR32 E:\Documents and Settings\All Users\Application Data\xyz.dll

运行此命令我收到以下错误后

After running this command I am getting following error

LodLibrary(e:\Documents) failed specified module could not be found.

我怎样才能解决这个问题呢?

How can I fix this problem?

推荐答案

这有空格这样的路径周围放双引号:

Put double quotes around the path that has spaces like this:

REGSVR32E:\\ Documents和Settings \\所有用户\\应用数据\\ xyz.dll

这篇关于如何写有空间的文件夹名的批处理文件的完整路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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