SLasH
Advanced Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору Код: @echo off chcp 1251 > nul if "%~1"=="" (call :errMsg "Usage: %~nx0 "Package.ini"" & goto :Quit) setlocal EnableDelayEdExpansion set "inFile=%~1" set "outFile=%TEMP%\Package.ini" if not exist "%inFile%" (call :errMsg "Package.ini not exist: ""%inFile%""" & goto :Quit) 1>nul 2>&1 copy /Y nul "%outFile%" for /f "delims= eol=;" %%A in ('type "%inFile%"') do ( set "curLine=%%~A" if "!curLine:~0,1!"=="[" (echo.>>"%outFile%") if "!curLine:~0,1!"=="." ( echo.>>"%outFile%" 1>>"%outFile%" echo ;RequiredAppLinks=%%ThinApp_Plugins%%\*\NET_3.5.dat 1>>"%outFile%" echo ;ChildProcessEnvironmentDefault=External 1>>"%outFile%" echo ;ExternalDLLs=.\Folder\hook64.dll;hook.dll 1>>"%outFile%" echo ;AllowExternalProcessModifications=1 1>>"%outFile%" echo ;PreventDllInjection=1 1>>"%outFile%" echo ;VirtualizeExternalOutOfProcessCOM=1 1>>"%outFile%" echo ;Version.Comments=Portable build by: Ciber SLasH ) echo !curLine!>>"%outFile%" ) move /Y "%outFile%" "%inFile%" goto :Quit :errMsg setlocal set "msg=%~1" set "msg=%msg:""="%" echo [ %~nx0 :: ERROR ]: %msg% endlocal exit /b 1 :Quit endlocal |
| Всего записей: 723 | Зарегистр. 08-10-2002 | Отправлено: 23:27 03-11-2013 | Исправлено: SLasH, 23:38 03-11-2013 |
|