Victor_VG
Tracker Mod | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору @echo off setlocal enableextensions if "%~1" == "--help" (goto hlp) if "%~1" == "-help" (goto hlp) if "%~1" == "-h" (goto hlp) if "%~1" == "" (goto skp) set ar=%1 set arg=%ar:~1,-1% :skp set dir=%~dp0 if "%PROCESSOR_ARCHITECTURE%"=="x86" ( if "%PROCESSOR_ARCHITEW6432%"=="AMD64" (set ma=x64) else (set ma=x86) ) else ( if "%PROCESSOR_ARCHITECTURE%"=="AMD64" (set ma=x64 ) else ( goto IA64) ) if not exist %dir%%ma%\ProcessHacker.exe.settings.xml ( echo ^<settings^> > %dir%%ma%\ProcessHacker.exe.settings.xml echo ^<setting name="AllowOnlyOneInstance"^>0^<^/setting^> >> %dir%%ma%\ProcessHacker.exe.settings.xml echo ^<setting name="CloseOnEscape"^>0^<^/setting^> >> %dir%%ma%\ProcessHacker.exe.settings.xml echo ^<setting name="CollapseServicesOnStart"^>0^<^/setting^> >> %dir%%ma%\ProcessHacker.exe.settings.xml echo ^<setting name="DbgHelpSearchPath"^>SRV^*C^:^\Symbols^*http^:^/^/msdl.microsoft.com^/download^/symbols^<^/setting^> >> %dir%%ma%\ProcessHacker.exe.settings.xml echo ^<setting name="DbgHelpUndecorate"^>1^<^/setting^> >> %dir%%ma%\ProcessHacker.exe.settings.xml echo ^<setting name="DisabledPlugins"^>^<^/setting^> >> %dir%%ma%\ProcessHacker.exe.settings.xml echo ^<setting name="ElevationLevel"^>1^<^/setting^> >> %dir%%ma%\ProcessHacker.exe.settings.xml echo ^<setting name="EnableCycleCpuUsage"^>0^<^/setting^> >> %dir%%ma%\ProcessHacker.exe.settings.xml echo ^<setting name="EnableInstantTooltips"^>1^<^/setting^> >> %dir%%ma%\ProcessHacker.exe.settings.xml echo ^<setting name="EnableKph"^>1^<^/setting^> >> %dir%%ma%\ProcessHacker.exe.settings.xml echo ^<setting name="EnableKphWarnings"^>0^<^/setting^> >> %dir%%ma%\ProcessHacker.exe.settings.xml echo ^<setting name="EnableNetworkResolve"^>1^<^/setting^> >> %dir%%ma%\ProcessHacker.exe.settings.xml echo ^<setting name="EnablePlugins"^>1^<^/setting^> >> %dir%%ma%\ProcessHacker.exe.settings.xml echo ^<setting name="EnableWarnings"^>1^<^/setting^> >> %dir%%ma%\ProcessHacker.exe.settings.xml echo ^<setting name="EnableSecurityAdvancedDialog"^>1^<^/setting^> >> %dir%%ma%\ProcessHacker.exe.settings.xml echo ^<setting name="ProcessHacker.NetworkTools.GeoDbPath"^>GeoLite2-Country.mmdb^<^/setting^> >> %dir%%ma%\ProcessHacker.exe.settings.xml echo ^<setting name="ProcessHacker.UserNotes.DatabasePath"^>usernotesdb.xml^<^/setting^> >> %dir%%ma%\ProcessHacker.exe.settings.xml echo ^<^/settings^> >> %dir%%ma%\ProcessHacker.exe.settings.xml ) if not exist %dir%%ma%\usernotesdb.xml (echo ^<objects ^/^> > %dir%%ma%\usernotesdb.xml) if "%~1" == "" (start /i /d "%dir%%ma%" ProcessHacker.exe ) else ( start /d "%dir%%ma%" ProcessHacker.exe %arg% ) exit :hlp echo USAGE: echo. echo ph echo. echo - Run Process Hacker w/o command line argument echo. echo ph "command line parameters string" or ph 'command line parameters string' echo. echo - Run Process Hacker with command line parameters always escaped in to quotes echo. echo ph -h or ph -help or ph --help echo. echo - Show this help and exit echo. echo SYNOPSIS: echo. echo Simple Process Hacker script based launcher have features run echo Process Hacker in to custom command line string escaped in single echo or double quotes as 'command line parameters string' or "command echo line parameters string". echo. echo WARNING: echo. echo - Quotes is required also if then used single command line parameter. echo. echo HISTORY: echo. echo v1.0 - First public version echo. echo v1.1 - Update to Process Hacker v3.0.5883.1356 echo. echo. echo v1.2 - Update CPU architecture detector - added IA64 check, refactoring. echo. echo LICENSE: echo. echo GPL v3.0 echo. echo (c) VictorVG @ VikSoft.Ru (Russia, Moscow, 1996 - 2018). All Right Reserved. echo. pause exit :IA64 echo. echo IA64 CPU detected, but Process Hacker compiled only for x86 and AMD64 CPU. echo. pause exit | Всего записей: 33134 | Зарегистр. 31-07-2002 | Отправлено: 04:19 08-09-2018 | Исправлено: Victor_VG, 05:21 08-09-2018 |
|