Skip to content

Instantly share code, notes, and snippets.

View Penderis's full-sized avatar

Keith Penderis

View GitHub Profile
.:-=+*##%%%%%%##*+=-:.
:=*%@@@%##*+++====+++**#%@@@%*=:
:+#@@@#*=-:::::::::::::::::::::-+*%@@%+:
-*@@%#+-:::::::::::::::::::::::::::::::-+#@@#=
.+@@%*=-::::::::::::::::::::::::::::::::::::::=#@@*:
:#@@#+=-::::::::::::##=::::##=::::##:::::::::::::::+%@%-
.#@@*==-::::::-:::::::@@=::::@@=::::@@-::::::-:::::::::=#@%-
+@@*==-:=++=::+@%+:::::@@#****@@#****@@:::::=#@*::::::::::=%@#.
:@@#==-:=@@%%@@+:=%@%-:::-*#####@@%####*=::::%@@+:::::::::::::+@@-
=@@+==-::@@+::+@@::+@@=::::::::=@@@@#::::::::-@@#-:::=#=:::::::::#@*
@Penderis
Penderis / Batch Recursive File Copier.bat
Last active July 23, 2023 11:29
Windows Batch Script to recursively copy files from folders into new folder using a text document with filenames
@echo off
CLS
setlocal EnableDelayedExpansion
REM Changes root path to relative of current bat folder
pushd "%~dp0"
REM finds files in provided .txt file and copies them to destination directory
REM CHECK FOR ADMIN RIGHTS
COPY /b/y NUL %WINDIR%\06CF2EB6-94E6-4a60-91D8-AB945AE8CF38 >NUL 2>&1