This repository contains a collection of useful Batch Files that I have created over the years.
Batch files are text files that contain a series of commands to be executed by the command interpreter.
Each Batch File (located in the root 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.
Backup_Folder.bat
Check if an endpoint is reachable.
Check_Website.bat
Create an Error Event Code in Windows Event Viewer.
Create_Event_Log.bat
Pass in a parameter (ENABLE or DISABLE) to Enable or Disable a Windows Scheduled Task.
Enable_or_Disable_Scheduled_Tasks.bat
Transfer files from a FTP Server to a Local file location.
FTP_Transfer.bat
Kill a running task.
Kill_Running_Program.bat
Move files from a Outbound Location/System to a Inbound Location/System using SMB protocol.
Move_Files_Inbound.bat
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.
Move_Files_Outbound.bat
Endlesslly ping an endpoint and record the network drops in a log file.
Network_Status.bat
Search a file for a specific string and replace it with another string.
Search_and_Replace_Text.bat
Send an email from a batch file via Powersell.
Send_Email.bat
This project is released under the terms of The Unlicense, which allows you to use, modify, and distribute the code as you see fit.
- The Unlicense removes traditional copyright restrictions, giving you the freedom to use the code in any way you choose.
- For more details, see the LICENSE file in this repository.
Author: Scott Grivner
Email: scott.grivner@gmail.com
Website: scottgrivner.dev
Reference: Main Branch