Grand Theft Auto V Legacy

Grand Theft Auto V Legacy

Yeterli oy yok
A Batch File to Disable/Enable Ethernet w/o Run as Admin
Soft Wumbo tarafından
Updated: More commands and colourful.

This is a batch file to disable and enable your ethernet connection without "run as admin", so you don't need to go to control panel or unplug your cable again in order to disable your connection.



   
Ödül
Favorilere Ekle
Favorilere Eklendi
Favorilerden Çıkar
Copy This
@echo off
Color 0D
SETLOCAL EnableDelayedExpansion
for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do rem"') do (
set "DEL=%%a"
)
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"

if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt) else (goto gotAdmin)

:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
set params = %*:"="
echo UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
del "%temp%\getadmin.vbs"
exit /B

:gotAdmin
pushd "%CD%"
CD /D "%~dp0"

:menu
call :colorEcho 06 "1. Disable Ethernet"
echo.
call :colorEcho 06 "2. Enable Ethernet"
echo.
set choice=
set /p choice=press 1 first to disable, then press 2 to re-enable it =
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='1' goto dis
if '%choice%'=='2' goto en
echo "%choice%" is not valid, try again
echo.
pause
cls
goto menu

:dis
netsh interface show interface | find /i "Ethernet" | find /i "Enabled"
if not errorlevel 1 (netsh interface set interface "Ethernet" disable
call :colorEcho 02 "it is disabled now!"
echo.
)else (call :colorEcho 03 "you have already disconnected it, press 2 to re-enable it."
echo.)
pause
cls
goto menu

:en
netsh interface show interface | find /i "Ethernet" | find /i "Disabled"
if not errorlevel 1 (netsh interface set interface "Ethernet" enable
call :colorEcho 02 "it is enabled now! "
echo.
)else (call :colorEcho 03 "it has already been enabled!"
echo.)
:menu2
set choice=
set /p choice=Do you want to exit? (press y to yes, and n to no) =
if '%choice%'=='y' goto exit
if '%choice%'=='n' goto menu
echo "%choice%" is not valid, try again
echo.
pause
cls
goto menu2

:colorEcho
echo off
<nul set /p ".=%DEL%" > "%~2"
findstr /v /a:%1 /R "^$" "%~2" nul
del "%~2" > nul 2>&1i
The Tutorial
-Open notepad and paste the command above
-Save as
-Save as type : All Files (*.*)


-Rename it with .bat (example: file.bat)


-Right Click on Desktop > New > Create > Shortcut


-Browse your Batch File


*My batch file is in D Drive, so it will be:

-Next, add cmd /c "full path to your batch file"
*Mine will be cmd /c D:\file.bat


-Next, rename it with your_file_name.exe > Finish

-Drag the shortcut from your desktop to the taskbar

-Open it, Press 1 to disable, and press 2 to enable it back








14 Yorum
Watermelon {JESUS IS LORD} 8 Şub 2024 @ 1:53 
ok smearing pb and jelly on it now might need bread tho
Soft Wumbo  [yaratıcı] 8 Şub 2024 @ 1:51 
yes
Watermelon {JESUS IS LORD} 8 Şub 2024 @ 1:49 
can i put peanut butter on my motherboard?
Soft Wumbo  [yaratıcı] 8 Şub 2024 @ 1:47 
u need it, u will break your lan or your lan port
without physical touch , it will be better
Watermelon {JESUS IS LORD} 8 Şub 2024 @ 1:41 
question is why would i need this i can pull out my ethernet with my hand
アキウアラ 7 Oca 2024 @ 3:12 
Thanks for the another useful tutorial Dr. professor Patrick.
Soloplayer902 3 Ara 2023 @ 5:46 
🍖
99 Boxes Enjoyer 25 Haz 2022 @ 2:29 
I cut off my ethernet's cable. So I guess I am good
Soft Wumbo  [yaratıcı] 24 Haz 2022 @ 1:13 
@Jimmio92 thanks, bro
Jimmio92 23 Haz 2022 @ 6:46 
This disables your ethernet networking port and reenables it. 10 seconds is the "law packet" time in GTA. If you miss a law packet, it puts you in a solo session.

I wrote a program in C that does this by pausing and unpausing the process, as well as a session lock tool by adding a firewall rule, as well as fixing Discord's priority for shit computers so Discord audio doesn't cut out when GTA uses too much CPU time.

No, it's not public.