::copyright@cjy @echo off ::mcs.exe address set addrMcs=D:Program FilesUnityEditorDataMonoBleedingEdgelibmono4.5 ::UnityEngine.dll address set addrUEdll=D:UnityEngine.dll ::source c# file address set addrscript=D:unity_projmotion1AssetsScripts set FileName=TestLib.dll cd /d %addrMcs% echo %cd% :begin echo Begin C# ==> DLL... mcs -r:%addrUEdll% -target:library %addrscript%TestLib.cs copy %addrscript%%FileName% D:\%FileName% @pause goto begin