-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ad5e6d
commit 02f1db1
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
9_Double_Click_Me_To_COPY_all_files_from_input_to_output_with_excludetxt.bat
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@echo off | ||
|
||
REM this is getting the path where the bat file is. | ||
cd /D "%~dp0" | ||
@REM config input and output folder (must be there) | ||
set input=%cd%\input | ||
set output=%cd%\output | ||
@REM xcopy "%input%\*" "%output%\" /s /e | ||
|
||
|
||
@REM REM this gives the ability to exlude subfolders from the copy process | ||
@REM @REM example in the xcopy_exclude.txt | ||
@REM @REM subfolder2\ | ||
@REM @REM subfolder1\ | ||
@REM @REM subfolder2\ | ||
xcopy "%input%\*" "%output%\" /s /e /exclude:xcopy_exclude.txt | ||
|