Last active
December 12, 2015 20:14
-
-
Save danilvalov/2b9f0f35184b5444c98a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set runtext=Запустили | |
tasklist|find /I "qbinder.exe">nul && ((taskkill /im "qbinder.exe">nul) && (taskkill /f /im "qbinder.exe">nul) && (set runtext=Перезапустили)) | |
set profile=%~1 | |
set settingsfile=C:\Progra~2\QuickBinder\settings.ini | |
set tmpfile=C:\Progra~2\QuickBinder\settings_tmp.ini | |
if exist %tmpfile% del /q %tmpfile% | |
chcp 1251 >nul | |
for /f "tokens=1,2 delims==" %%i in (%settingsfile%) do ( | |
if %%i==profile ( | |
(echo %%i=%profile%)>>%tmpfile% | |
) else ( | |
if "%%j"=="" ( | |
echo %%i>>%tmpfile% | |
) else ( | |
echo %%i=%%j>>%tmpfile% | |
) | |
) | |
) | |
chcp 866 >nul | |
copy /y %tmpfile% %settingsfile% >nul | |
del /f /q %tmpfile% | |
@echo Поменяли профиль Quick Binder на "%profile%" | |
ping -n 1 127.0.0.1 >nul | |
@echo %runtext% Quick Binder | |
start "" "C:\Progra~2\QuickBinder\qbinder.exe" | |
ping -n 5 127.0.0.1 >nul |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
call "SAMP.bat" "5.254.104.120" "7777" "Danil_Valov" "123456" "" "RP-Солдат ЛВа 1 взвод" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set chatlogDir="%userprofile%\Documents\GTA San Andreas User Files\SAMP" | |
set chatlogFile=%chatlogDir%"\chatlog.txt" | |
for %%f IN (%chatlogFile%) do set chatlogLastDate=%%~tf | |
set chatlogLastDate=%chatlogLastDate::=.% | |
set chatlogLastDate=%chatlogLastDate: =_% | |
if not exist %chatlogDir% (md %chatlogDir%) | |
copy %chatlogFile% %chatlogDir%"\logs\%chatlogLastDate%.txt">nul | |
@echo Сохранили копию "chatlog.txt" тут: "logs\%chatlogLastDate%.txt" | |
::@echo Запустили Fraps | |
::start "" "C:\Progra~1\Fraps\fraps_ru.exe" | |
@echo Запустили Bandicam | |
start "" "C:\Progra~2\Bandicam\bdcam.exe" | |
if %6 NEQ "" (call "QBinder.bat" %6) | |
<nul set /p x=%4| Clip | |
@echo Скопировали текст в буфер обмена (вставить текст - Ctrl+V) | |
@echo Запускаем SAMP... | |
if %5 NEQ "" ( | |
start /affinity 1 "" "D:\Games\GTA San Andreas\samp.exe" -c -h%~1-p%~2-n%~3-z%5 | |
) else ( | |
start /affinity 1 "" "D:\Games\GTA San Andreas\samp.exe" -c -h%~1-p%~2-n%~3 | |
) | |
ping -n 5 127.0.0.1 >nul |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment