Introduction: Different Colors in Batch File and Others
introduction
This guide features multiple useful Batch utilities such as a multiline color command, in which past me will explain: The color command in batch files changes the color of the terminal. This is very limited however as it does it for the entire screen, instead of one line. I have made a function that allows you to change the color of each individual line. Credit to Prof. Pickle for the idea.
Also if you don't want to do utility one at least read how to make it so you know how to use them as I won't be explaining it in any other utility. You are also expected to repeat the same for any other utilities in this guide. Or you can just use an installer I made in the bottom.
I am also planning to add more utilities! Suggestions appreciated.
installer instructions
Download Python 3.14
Download the installer here
Then extract it into a folder
Open the terminal in that folder with admin privileges
Run 'pip install -r requirements.txt'
Run 'python main.py'
If it is your first time installing it will say that it detected an invalid folder. As long as you don't happen to have any important things in that folder you can safely confirm.
It might also say something with "PermissionError" in it. If this happens it means you did not run the terminal with admin privileges and you need to run it again.
Supplies
A Windows Computer (preferably 7+)
A text editor (any will work)
Basic knowledge of computers (how to navigate folders, etc.)
Step 1: Utility 1
Different Colors In Batch File
Copy this code and paste it to EXACTLY this file name: fecho.bat
Create a folder wherever you would like.
Go to "Edit the system environment variables" by using the Start menu search bar.
Click "Environment Variables," select "Path" under "System variables," then "Edit," then "Browse," and select the folder you just made.
Place the fecho.bat file we made earlier in the folder.
Restart any terminals you want to use it in and you're ready to go.
I would also recommend using the same folder for my other custom Batch commands, but do whatever you want.
You might also know that Prof. Pickle said to place the custom commands in System32, and I will clear that up. Basically, whenever you enter a command in CMD, the system looks for an executable file with the name corresponding to the command you just entered that is in a folder on PATH. System32 is included by default on PATH so that's why it works. However I recommend this method as putting random commands in System32 is messy and this method allows you to keep everything organized and in a custom folder. This is also the standard way to install most developer CLI tools so it is widely recognized.
Open the cmd and type in:
This will give you the info on how to use it. For example:
returns this:

This should work also in Batch scripts but if it doesn't use this instead:
Step 2: Utility 2
Weather Utility
Copy this code and paste it EXACTLY into this file: getweather.bat:
Also note that this requires an internet connection.
Step 3: Utility 3
Fun Fact Utility
Copy and paste this code into a file with EXACTLY this name: funfact.bat:
This also requires an internet connection.




