环境:Win7 x64,VS2015
工具:.NET Reactor 5
代码:
@echo off
set WORK_DIR=XXX
set OUTPUT_DIR=%WORK_DIR%\output
cd /d %OUTPUT_DIR%
REM DELETE TEMP PROTECTED DIR
rd /s /q ProtectedDLL
REM DO DOTNET_REACTOR
for %%s in (*.dll *.exe) do (
if "%%s"=="001.dll" ( DOTNET_REACTOR -file "%%s" -targetfile "ProtectedDLL\%%s"
)
if "%%s"=="002.dll" ( DOTNET_REACTOR -file "%%s" -targetfile "ProtectedDLL\%%s"
)
if "%%s"=="003.dll" ( DOTNET_REACTOR -file "%%s" -targetfile "ProtectedDLL\%%s"
)
)
REM COPY
cd /d %OUTPUT_DIR%\ProtectedDLL
for %%s in (*.*) do (
copy "%%s" %OUTPUT_DIR%\"%%s"
)
del /s /q /f %OUTPUT_DIR%\ProtectedDLL
pause