{"id":22940872,"url":"https://github.com/scottgriv/batch-useful_bat_files","last_synced_at":"2025-08-12T21:31:30.107Z","repository":{"id":163780214,"uuid":"586060486","full_name":"scottgriv/batch-useful_bat_files","owner":"scottgriv","description":"A collection of useful Windows Batch files.","archived":false,"fork":false,"pushed_at":"2024-11-23T02:03:23.000Z","size":479,"stargazers_count":9,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-08T16:46:42.573Z","etag":null,"topics":["batch-file","batch-script","utility","utility-app","utility-application","utility-script","windows","windows-batch","windows-batch-script"],"latest_commit_sha":null,"homepage":"","language":"Batchfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scottgriv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-06T20:46:26.000Z","updated_at":"2024-12-07T07:28:14.000Z","dependencies_parsed_at":"2024-02-16T02:27:48.142Z","dependency_job_id":"611e94cb-3325-4f97-9eff-0e6cad9f9f19","html_url":"https://github.com/scottgriv/batch-useful_bat_files","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgriv%2Fbatch-useful_bat_files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgriv%2Fbatch-useful_bat_files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgriv%2Fbatch-useful_bat_files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgriv%2Fbatch-useful_bat_files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scottgriv","download_url":"https://codeload.github.com/scottgriv/batch-useful_bat_files/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229708282,"owners_count":18111242,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["batch-file","batch-script","utility","utility-app","utility-application","utility-script","windows","windows-batch","windows-batch-script"],"created_at":"2024-12-14T13:33:02.879Z","updated_at":"2025-08-12T21:31:30.088Z","avatar_url":"https://github.com/scottgriv.png","language":"Batchfile","funding_links":["https://www.buymeacoffee.com/scottgriv"],"categories":[],"sub_categories":[],"readme":"\u003c!-- Begin README --\u003e\r\n\r\n\u003cdiv align=\"center\"\u003e\r\n    \u003ca href=\"https://github.com/scottgriv/batch-useful_bat_files\" target=\"_blank\"\u003e\r\n        \u003cimg src=\"./docs/images/icon.png\" width=\"150\" height=\"150\"/\u003e\r\n    \u003c/a\u003e\r\n\u003c/div\u003e\r\n\u003cbr\u003e\r\n\u003cp align=\"center\"\u003e\r\n    \u003ca href=\"https://github.com/scottgriv\"\u003e\u003cimg src=\"https://img.shields.io/badge/github-follow_me-181717?style=for-the-badge\u0026logo=github\u0026color=181717\" alt=\"GitHub Badge\" /\u003e\u003c/a\u003e\r\n    \u003ca href=\"mailto:scott.grivner@gmail.com\"\u003e\u003cimg src=\"https://img.shields.io/badge/gmail-contact_me-EA4335?style=for-the-badge\u0026logo=gmail\" alt=\"Email Badge\" /\u003e\u003c/a\u003e\r\n    \u003ca href=\"https://www.buymeacoffee.com/scottgriv\"\u003e\u003cimg src=\"https://img.shields.io/badge/buy_me_a_coffee-support_me-FFDD00?style=for-the-badge\u0026logo=buymeacoffee\u0026color=FFDD00\" alt=\"BuyMeACoffee Badge\" /\u003e\u003c/a\u003e\r\n    \u003cbr\u003e\r\n    \u003ca href=\"https://prgportfolio.com\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/PRG-Silver Project-C0C0C0?style=for-the-badge\u0026logo=data:image/svg%2bxml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDIwMDEwOTA0Ly9FTiIKICJodHRwOi8vd3d3LnczLm9yZy9UUi8yMDAxL1JFQy1TVkctMjAwMTA5MDQvRFREL3N2ZzEwLmR0ZCI+CjxzdmcgdmVyc2lvbj0iMS4wIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiB3aWR0aD0iMjYuMDAwMDAwcHQiIGhlaWdodD0iMzQuMDAwMDAwcHQiIHZpZXdCb3g9IjAgMCAyNi4wMDAwMDAgMzQuMDAwMDAwIgogcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQgbWVldCI+Cgo8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDAwMCwzNC4wMDAwMDApIHNjYWxlKDAuMTAwMDAwLC0wLjEwMDAwMCkiCmZpbGw9IiNDMEMwQzAiIHN0cm9rZT0ibm9uZSI+CjxwYXRoIGQ9Ik0xMiAzMjggYy04IC04IC0xMiAtNTEgLTEyIC0xMzUgMCAtMTA5IDIgLTEyNSAxOSAtMTQwIDQyIC0zOCA0OAotNDIgNTkgLTMxIDcgNyAxNyA2IDMxIC0xIDEzIC03IDIxIC04IDIxIC0yIDAgNiAyOCAxMSA2MyAxMyBsNjIgMyAwIDE1MCAwCjE1MCAtMTE1IDMgYy04MSAyIC0xMTkgLTEgLTEyOCAtMTB6IG0xMDIgLTc0IGMtNiAtMzMgLTUgLTM2IDE3IC0zMiAxOCAyIDIzCjggMjEgMjUgLTMgMjQgMTUgNDAgMzAgMjUgMTQgLTE0IC0xNyAtNTkgLTQ4IC02NiAtMjAgLTUgLTIzIC0xMSAtMTggLTMyIDYKLTIxIDMgLTI1IC0xMSAtMjIgLTE2IDIgLTE4IDEzIC0xOCA2NiAxIDc3IDAgNzIgMTggNzIgMTMgMCAxNSAtNyA5IC0zNnoKbTExNiAtMTY5IGMwIC0yMyAtMyAtMjUgLTQ5IC0yNSAtNDAgMCAtNTAgMyAtNTQgMjAgLTMgMTQgLTE0IDIwIC0zMiAyMCAtMTgKMCAtMjkgLTYgLTMyIC0yMCAtNyAtMjUgLTIzIC0yNiAtMjMgLTIgMCAyOSA4IDMyIDEwMiAzMiA4NyAwIDg4IDAgODggLTI1eiIvPgo8L2c+Cjwvc3ZnPgo=\" alt=\"Silver\" /\u003e\u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\n---------------\r\n\r\n\u003ch1 align=\"center\"\u003eUseful Batch Files\u003c/h1\u003e\r\n\r\nThis repository contains a curated collection of useful batch files I’ve created over the years. \u003cbr\u003e\r\nBatch files are plain text scripts that execute a series of commands through the Windows command interpreter.\r\n\r\n---------------\r\n\r\n## Table of Contents\r\n\r\n- [Getting Started](#getting-started)\r\n    - [Backup Folder](#backup-folder)\r\n    - [Check Website](#check-website)\r\n    - [Create Event Log](#create-event-log)\r\n    - [Enable or Disable Scheduled Tasks](#enable-or-disable-scheduled-tasks)\r\n    - [FTP Transfer](#ftp-transfer)\r\n    - [Kill Running Program](#kill-running-program)\r\n    - [Move Files (Inbound)](#move-files-inbound)\r\n    - [Move Files (Outbound)](#move-files-outbound)\r\n    - [Network Status](#network-status)\r\n    - [Search and Replace Text](#search-and-replace-text)\r\n    - [Send Email](#send-email)\r\n- [License](#license)\r\n- [Resources](#resources)\r\n- [Credits](#credits)\r\n\r\n## Getting Started\r\n\r\nEach Batch File (located in the [source](./source/) folder of this repository) contains a description of what it does and how to use it. \u003cbr\u003e\r\n\r\nAdditionally, 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.\r\n\r\nTo run a Batch File, simply double-click on it using Windows Explorer or run it from the command line.\r\n\r\n\u003e [!TIP] \r\n\u003e Use the following Batch Files with Windows Task Scheduler to create an automated process.\r\n\r\n### Backup Folder\r\n\r\nBackup a selected folder and create an archive folder with today's date appended to it.\r\n\r\n\u003e [Backup_Folder.bat](./source/Backup_Folder.bat)\r\n\r\n### Check Website\r\n\r\nCheck if an endpoint is reachable.\r\n\r\n\u003e [Check_Website.bat](./source/Check_Website.bat)\r\n\r\n### Create Event Log\r\n\r\nCreate an Error Event Code in Windows Event Viewer.\r\n\r\n\u003e [Create_Event_Log.bat](./source/Create_Event_Log.bat)\r\n\r\n### Enable or Disable Scheduled Tasks\r\n\r\nPass in a parameter (ENABLE or DISABLE) to Enable or Disable a Windows Scheduled Task.\r\n\r\n\u003e [Enable_or_Disable_Scheduled_Tasks.bat](./source/Enable_or_Disable_Scheduled_Task.bat)\r\n\r\n### FTP Transfer\r\n\r\nTransfer files from a FTP Server to a Local file location.\r\n\r\n\u003e [FTP_Transfer.bat](./source/FTP_Transfer.bat)\r\n\r\n### Kill Running Program\r\n\r\nKill a running task.\r\n\r\n\u003e [Kill_Running_Program.bat](./source//Kill_Running_Program.bat)\r\n\r\n### Move Files (Inbound)\r\n\r\nMove files from a Outbound Location/System to a Inbound Location/System using SMB protocol.\r\n\r\n\u003e [Move_Files_Inbound.bat](./source/Move_Files_Inbound.bat)\r\n\r\n### Move Files (Outbound)\r\n\r\nMove files from an Inbound Location/System to an Outbound Location/System using SMB protocol.\r\nAdditionally, this script will create an archive folder to archive the outbound files on a daily basis.\r\n\r\n\u003e [Move_Files_Outbound.bat](./source/Move_Files_Outbound.bat)\r\n\r\n### Network Status\r\n\r\nEndlesslly ping an endpoint and record the network drops in a log file.\r\n\r\n\u003e [Network_Status.bat](./source/Network_Status.bat)\r\n\r\n### Search and Replace Text\r\n\r\nSearch a file for a specific string and replace it with another string.\r\n\r\n\u003e [Search_and_Replace_Text.bat](./source/Search_and_Replace_Text.bat)\r\n\r\n### Send Email\r\n\r\nSend an email from a batch file via Powersell.\r\n\r\n\u003e [Send_Email.bat](./source/Send_Email.bat)\r\n\r\n## Resources\r\n\r\n- [Batch File](https://en.wikipedia.org/wiki/Batch_file)\r\n- [Batch File Commands](https://ss64.com/nt/)\r\n- [Batch File Tutorial](https://www.tutorialspoint.com/batch_script/index.htm)\r\n\r\n## License\r\n\r\nThis 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.\r\n- The [MIT License](https://choosealicense.com/licenses/mit/) provides certain freedoms while preserving rights of attribution to the original creators.\r\n- For more details, see the [LICENSE](LICENSE) file in this repository. in this repository.\r\n\r\n## Credits\r\n\r\n**Author:** [Scott Grivner](https://github.com/scottgriv) \u003cbr\u003e\r\n**Email:** [scott.grivner@gmail.com](mailto:scott.grivner@gmail.com) \u003cbr\u003e\r\n**Website:** [scottgrivner.dev](https://www.scottgrivner.dev) \u003cbr\u003e\r\n**Reference:** [Main Branch](https://github.com/scottgriv/batch-useful_bat_files) \u003cbr\u003e\r\n\r\n---------------\r\n\r\n\u003cdiv align=\"center\"\u003e\r\n    \u003ca href=\"https://scottgrivner.dev\" target=\"_blank\"\u003e\r\n        \u003cimg src=\"./docs/images/footer.png\" width=\"100\" height=\"100\"/\u003e\r\n    \u003c/a\u003e\r\n\u003c/div\u003e\r\n\r\n\u003c!-- End README --\u003e\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottgriv%2Fbatch-useful_bat_files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscottgriv%2Fbatch-useful_bat_files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottgriv%2Fbatch-useful_bat_files/lists"}