如何在文件夹名称带空格的批处理文件中写入完整路径?

问题描述:

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

I am writing following command in batch file

REGSVR32 E:Documents and SettingsAll UsersApplication Dataxyz.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:

REGSVR32 "E:Documents and SettingsAll UsersApplication Dataxyz.dll"