vs編譯文件後,把生成的文件拷貝到另一個目錄:
XCopy /r /q "$(ProjectDir)$(OutDir)*.*" "$(ProjectDir)bin\%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%\"
命令行:
XCOPY D:\Projects\Code\Release\* D:\Projects\Code\InstallationPackage\pc-client\Release\ /e/u
我寫了一個bat文件不知道問什麼上邊執行不成功,一直循環;
ROBOCOPY D:\Examples\ D:\Examples\%date:~0,4%%date:~5,2%%date:~8,2%0%time:~1,1%%time:~3,2%%time:~6,2%\ /e
參考文章:
http://blog.sina.com.cn/s/blog_75a555e40101aahx.html
https://zheyiw.iteye.com/blog/1976391
https://blog.csdn.net/machinecat0898/article/details/7804988