Skip to content

lighscent/win-clear

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Windows Clear Command πŸ–₯️

A simple utility to add the clear command to Windows, similar to Linux/Unix systems.

FAQ

πŸ“‹ Installation

  1. Clone this repository:
git clone https://github.com/lighscent/win-clear.git win-clear
cd win-clear
  1. Launch PowerShell as administrator and run:
cd C:\Users\x\Desktop\win-clear
Set-ExecutionPolicy Bypass -Scope Process -Force
.\install-clear.ps1

πŸš€ Usage

In any CMD window, simply type:

clear

πŸ“ Project Structure

win-clear/
β”œβ”€β”€ clear.bat         # Screen clearing script
β”œβ”€β”€ install-clear.ps1 # Installation script
└── README.md        # Documentation

βš™οΈ How it Works

  • clear.bat contains a simple cls command that clears the screen
  • install-clear.ps1 copies clear.bat to C:\Windows\System32 to make it globally accessible

⚠️ Prerequisites

  • Windows 10 or newer
  • Administrator rights for installation

πŸ”’ Security

The installation script requires administrator rights as it modifies the system folder C:\Windows\System32.

πŸ“„ License

MIT License

πŸ‘₯ Contributing

Contributions are welcome! Feel free to:

  • Open an issue
  • Submit a pull request
  • Suggest improvements

πŸ“¬ Contact

lighscent

About

A clear command for Windows

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published