Post-Build copy DLL to directory
首先撰寫我們的batch file - build.bat:
XCOPY ..\..\folder\filename %1 /S /Y
@pause
將它放在project檔案旁邊。接著在MSVC中project perporties中的
Post-Build Event輸入call ./build.bat $(OutDir)。 如此一來就
可以將我們的.dll copy到執行檔旁邊了。
Batch 教學
http://bbs.nsysu.edu.tw/txtVersion/boards/msdos/M.1078700757.A.htmlBatch指令
http://ca95.pixnet.net/blog/post/3922827
Comments
Post a Comment