Skip to content

Instantly share code, notes, and snippets.

View vancuong4662's full-sized avatar
😆
Focus on Gamemaker

VanCuong4662 vancuong4662

😆
Focus on Gamemaker
View GitHub Profile
@vancuong4662
vancuong4662 / gist:55539e5e047367cab34401a36c879f29
Created February 4, 2026 01:04
Batch file để fix lỗi chiếm port của XAMPP
@echo off
:: BatchGotAdmin - Auto-elevate to Administrator
:-------------------------------------
REM --> Check for permissions
IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" (
>nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system"
) ELSE (
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
)