请查看以下命令以及语法错误是什么?我想将dll文件复制到我的项目bin目录
C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.WinForms\10.0.0.0__b03f5f7f1
1d50a3a>dir /s /b /o:gn
C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.WinForms\10.0.0.0__b03f5f7f1
1d50a3a\Microsoft.ReportViewer.WinForms.dll
C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.WinForms\10.0.0.0__b03f5f7f1
1d50a3a>copy Microsoft.ReportViewer.WinForms.dll C:\Documents and Settings\mural
i.madhava\My Documents\Visual Studio 2008\Projects\Rdclrender\Rdclrender\bin
The syntax of the command is incorrect.
答案 0 :(得分:1)
如果路径中有空格(例如C:\Documents and Settings
),则需要用引号括起来以阻止它们被视为多个参数:
copy blah.WinForms.dll "C:\Documents and Settings\blah\bin"
这为您提供了三参数命令:
copy
blah.WinForms.dll
C:\Documents and Settings\blah\bin
如果没有引号,你会得到不你想要的五参数命令:
copy
blah.WinForms.dll
C:\Documents
and
Settings\blah\bin
答案 1 :(得分:1)
很简单,您需要在任何包含空格的路径周围放置引号:
复制Microsoft.ReportViewer.WinForms.dll“C:\ Documents and Settings \ murali.madhava \ My Documents \ Visual Studio 2008 \ Projects \ Rdclrender \ Rdclrender \ bin”