Last active
September 15, 2021 16:33
-
-
Save weaponsforge/8756c3e2a58163cb0340e611e11a7aeb to your computer and use it in GitHub Desktop.
Copy all files and directories recursively
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
::---------------------------------------------------------- | |
:: Copy all directories and files recursively into a | |
:: specified directory. Overwrites existing files. | |
:: weaponsforge;20210827 | |
::---------------------------------------------------------- | |
@echo off | |
setlocal ENABLEDELAYEDEXPANSION | |
set replace=kyp | |
echo Enter a directory [%replace%] | |
set /p replace="or press enter to proceed:" | |
set curr_path="%cd%" | |
set curr_path=%curr_path:local_kyp=!replace!% | |
xcopy /s /A . %curr_path% /y /i | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment