This repository contains a curated collection of useful batch files I’ve created over the years.
Batch files are plain text scripts that execute a series of commands through the Windows command interpreter.
Each Batch File (located in the source folder of this repository) contains a description of what it does and how to use it.
Additionally, some of the Batch File contain a :HELP
section that will display the description and usage when the Batch File is executed with the /?
parameter.
To run a Batch File, simply double-click on it using Windows Explorer or run it from the command line.
Tip
Use the following Batch Files with Windows Task Scheduler to create an automated process.
Backup a selected folder and create an archive folder with today's date appended to it.
Check if an endpoint is reachable.
Create an Error Event Code in Windows Event Viewer.
Pass in a parameter (ENABLE or DISABLE) to Enable or Disable a Windows Scheduled Task.
Transfer files from a FTP Server to a Local file location.
Kill a running task.
Move files from a Outbound Location/System to a Inbound Location/System using SMB protocol.
Move files from an Inbound Location/System to an Outbound Location/System using SMB protocol. Additionally, this script will create an archive folder to archive the outbound files on a daily basis.
Endlesslly ping an endpoint and record the network drops in a log file.
Search a file for a specific string and replace it with another string.
Send an email from a batch file via Powersell.
This project is released under the terms of the MIT License, which permits use, modification, and distribution of the code, subject to the conditions outlined in the license.
- The MIT License provides certain freedoms while preserving rights of attribution to the original creators.
- For more details, see the LICENSE file in this repository. in this repository.
Author: Scott Grivner
Email: scott.grivner@gmail.com
Website: scottgrivner.dev
Reference: Main Branch