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.html Batch指令 http://ca95.pixnet.net/blog/post/3922827 Creating a Batch File to copy a directory http://en.kioskea.net/forum/affich-30405-creating-a-batch-file-to-copy-a-directory Pre-build Event/Post-build Event Command Line Dialog Box http://msdn.microsoft.com/en-us/library/42x5kfw4%28VS.80%29.aspx