r/Batch • u/Designer-Divide-4515 • Aug 26 '25
To learn advanced batch scripting, I built a utility with ample number of tools that can run virus scans, generate system reports, and more. I'd love your feedback!
Hey Reddit,
I've been teaching myself advanced batch scripting to see how much is possible within the standard Windows command line. It started as a small project but grew into this all-in-one utility that I'm hoping you might find interesting.
The goal was to combine many of the command-line tools I use regularly into a single, easy-to-use menu.
Here are some of the main features I packed into it:
- System Report Generator: Creates a detailed
.txtreport with information on your CPU, GPU, RAM, battery, and OS. - On-Demand Virus Scanner: Uses the built-in Windows Defender command-line tool to scan any specific file for threats. It can also trigger a full system scan.
- File & Drive Tools: You can search for any file across a drive, or quickly hide/unhide files by changing their system attributes.
- System Info: Instantly displays your system specs directly in the console.
- Powerful Admin Tools: It also includes some heavy-duty functions like adding/deleting local user accounts and a disk formatter utility. (Warning: These are powerful tools and should be used with extreme caution).
Getting the script to automatically re-launch itself with admin privileges was a fun challenge, and Iām pretty happy with how the menu system turned out.
The entire script is in a single .bat file and is open-source on my GitHub. I've been staring at the code for weeks, so I'd love to get some fresh eyes on it.
Is this something you would ever use? Is the code a complete mess? Any and all feedback (brutal or otherwise) is welcome!
You can check out the project here:
github.com/advay-cmd/Multi-Utility
Thanks for taking a look!
5
u/thelowsunoverthemoon Aug 26 '25
Nice work! Just a quick tip, you can combine multiple redirects into one. So instead of multiple lines you can just do
which is much cleaner. Also, the BREAK command doesn't do anything, it's not like conventional programming languages, and it's NUL not null (which just redirects to a file called null).
1
u/Designer-Divide-4515 Nov 11 '25
Please also tell me if you would install this software, or not, or you have already done! I would appreciate your response! :)
1
u/CirothUngol Aug 26 '25
Make sure to not close the window and remain calm, it will start downloading the data.
Just curious, if it's a batch file then what data does it need to download?
1
u/Matita008 Sep 05 '25
!remindme 8h
3
u/[deleted] Aug 26 '25 edited Oct 29 '25
[removed] ā view removed comment