Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

MrAmmarAmer/BatchScriptProjects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

24 Commits

Repository files navigation

πŸ–₯️ Batch Script Projects

Batch File

A collection of useful **Batch Script projects** and mini-tools for Windows automation, productivity, and learning. This repository is perfect for developers, sysadmins, and enthusiasts who want to explore the power of Windows CMD scripting.

πŸ“š About

This repository contains multiple Batch scripts that solve real-world problems, automate tasks, and demonstrate core concepts like:

  • File and folder management
  • User interaction with set /p
  • System utilities (shutdown, restart, etc.)
  • Networking commands
  • Automation tricks and hidden Windows commands

I regularly update this repository with new projects, so consider starring ⭐ it to stay up to date.

πŸ“‚ Repository Structure

BatchScriptProjects/
β”‚
β”œβ”€β”€ Shutdown-Timer/		# A simple and useful app/program, shuts down your computer after several minutes
β”‚ β”‚
β”‚ β”œβ”€β”€	script.bat					# includes the main batch script 
β”‚ β”œβ”€β”€ single-command.bat	# includes compressed script to use it as one single command				
β”‚ └──	custom-icon.ico	 # Custom icon to use it as custom command for a shortcut 
β”‚		
└── More							# soon 
  • Each file is self-contained and well-commented for easy understanding.
  • Each file contains the main script in a batch. Some others include the single-command.bat file, which contains the same script, but is slightly different. To run as a single command.

πŸ“Œ It is useful when used as a clickable shortcut.

  • Example:
  1. Create a shortcut anywhere on your computer

  2. Add the following script as the target of the shortcut.

    	cmd.exe /v:on /c "set /p t=Enter minutes to shutdown (Enter=now, x=cancel): & if /i "!t!"=="x" (shutdown /a) else if "!t!"=="" (shutdown /s /t 0) else (set /a s=!t!*60 >nul & shutdown /f /s /t !s!)" & pause

    source: BatchScriptProjects/Shutdown-Timer/single-command.bat

  3. [optional] Download & Add the BatchScriptProjects/Shutdown-Timer/custom-icon.ico as the custom icon of the shortcut.

  4. [In some projects, it is required] Go to the properties of the shortcut >> Advanced >> Run as Administrator >> Ok >> Ok

  5. Use it by clicking it; now you have a simple and useful shutdown timer program.

🧠 Example Projects

Here are some examples of what's included:

  • βœ… Shutdown Timer – Schedule automatic shutdown/restart
  • βœ… Folder Generator – Create multiple folders in one go
  • βœ… Network Tools – Get IP, MAC address, ping websites
  • βœ… File Hider – Combine image + file using copy /b trick
  • βœ… User Prompt Scripts – Interactive scripts with input validation

πŸ’‘ Why This Repo?

  • Great for beginners to learn Batch scripting step by step
  • Useful for automation lovers who want quick solutions
  • A growing collection with practical use cases

πŸ› οΈ Requirements

  • Windows 7/10/11
  • Command Prompt (cmd.exe)

πŸ“œ License

This project is licensed under the MIT License – feel free to use, modify, and share.

About

A collection of projects, utilities, and scripts developed using Windows Batch (.bat) and Command Prompt (cmd) commands. πŸ’» βš™οΈ

Topics

Resources

License

Stars

Watchers

Forks

Contributors

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /