Skip to content

Instantly share code, notes, and snippets.

View devomman's full-sized avatar
:octocat:
Available for work

Muhammad Omman devomman

:octocat:
Available for work
View GitHub Profile
@devomman
devomman / Clear.bat
Last active August 18, 2024 12:44
Windows 10/11 clear command using batch file by DevOmman
@echo off
:: (Run as Admin code starts)
REM Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\icacls.exe" "%SYSTEMROOT%\system32\config\system"
REM If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Now Running As Administrative Privileges...
goto UACPrompt