xcopy "$(ProjectDir)ViewsHomeIndex.cshtml" "$(SolutionDir)MEFMVCPOCViewsHome"
and if you want to copy entire folders:
xcopy /E /Y "$(ProjectDir)Views" "$(SolutionDir)MEFMVCPOCViews"
Update: here's the working version
xcopy "$(ProjectDir)ViewsModuleAHomeIndex.cshtml" "$(SolutionDir)MEFMVCPOCViewsModuleAHome" /Y /I
Here are some commonly used switches with xcopy
:
- /I - treat as a directory if copying multiple files.
- /Q - Do not display the files being copied.
- /S - Copy subdirectories unless empty.
- /E - Copy empty subdirectories.
- /Y - Do not prompt for overwrite of existing files.
- /R - Overwrite read-only files.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…