30 Amazing Things You Can Create in CMD Using Notepad

Notepad and Command Prompt (CMD) offer endless possibilities for creating fun, useful, and sometimes even crazy things with just a few lines of code. In this post, we explore 30 amazing creations you can make using these tools in 2024. Whether you’re a beginner or an experienced user, you’ll find something to try. Let’s dive in!

FreeCmd

Photo by ronnachaipark from Freerange Stock

1. Create a Hello World Program

You can create a simple “Hello World” program with just a few lines of code in Notepad and CMD. This is a great starting point for beginners in programming and CMD scripting.
echo Hello World

2. Create a Batch File to Open Websites

Use a batch file to automatically open websites in your default browser. This can be handy for quickly accessing your favorite sites.
start https://www.google.com

3. Shutdown Your PC with CMD

If you need to shut down your PC at a specific time, you can do this using CMD commands.
shutdown /s /f /t 0

4. Create a Password Generator

You can create a basic password generator that will generate random passwords in CMD using simple batch scripting.
echo %random%%random%%random%

5. Create Text Animations in CMD

Add a little fun by creating animated text effects in CMD using the ping command to delay the animations.
echo Text Animation!

6. Create a Fake Virus

This isn’t a real virus, but you can create a harmless batch script that imitates a computer virus effect, just for fun.
:start
start %0
goto start

7. Hide Files Using CMD

You can easily hide files using a simple CMD command. This can be useful if you want to keep files private.
attrib +h +s filename

8. Display System Information

Use CMD to display detailed information about your system like OS version, memory, and processor details.
systeminfo

9. Create a Digital Clock

Display a real-time clock on your CMD screen with a simple batch script.
echo %time%

10. Create a Password-Protected Folder

You can create a simple password-protected folder using a batch script to secure files.
cls
echo Enter password:
set/p "pass=>"
if %pass%==yourpassword goto LOCK

11. Create a Fake Error Message

You can create a fake error message to surprise or prank your friends.
msg * "Error: Something went wrong!"

12. Create a Simple Calculator in CMD

You can create a basic calculator using batch scripts to perform simple calculations.
set /a result=%num1% + %num2%

13. Create a Ping Test Script

Run a ping test and see how quickly your internet is responding with a simple script.
ping google.com

14. Automatically Create Multiple Folders

Automatically create multiple folders with a batch file, which is great for organizing files.
mkdir Folder1 Folder2 Folder3

15. Create a Backup Script

Create a script to back up important files and folders at regular intervals.
xcopy source destination /e /i /h