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 February 27, 2024 19:47
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