There are several types of IF statements you can use in a Windows batch file to save time and effort. Check these examples to find out more.
https://www.makeuseof.com/tag/windows-batch-if-statements/
* how to set up blat * how to set up Windows scheduled tasks * 4 Boring Tasks You Can Automate With the Windows Task Scheduler * 4 Boring Tasks You Can Automate With the Windows Task Scheduler * information you can obtain out of a WMIC command * use Windows scripts for processing data to an Excel file * 5 Useful VB Windows Scripts to Automate Your Computer Use * 5 Useful VB Windows Scripts to Automate Your Computer Use * extensive list of error codes * creating your first VBA application * learn Python programming * learn to use PowerShell * 5 Reasons You Should Use PowerShell Instead of Batch Scripting * 5 Reasons You Should Use PowerShell Instead of Batch Scripting