From 02f1db1745504d1fd09154965bb7189e26bb552e Mon Sep 17 00:00:00 2001 From: Fleischkuechle Date: Sun, 19 May 2024 03:07:24 +0200 Subject: [PATCH] x --- ...les_from_input_to_output_with_excludetxt.bat | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 9_Double_Click_Me_To_COPY_all_files_from_input_to_output_with_excludetxt.bat diff --git a/9_Double_Click_Me_To_COPY_all_files_from_input_to_output_with_excludetxt.bat b/9_Double_Click_Me_To_COPY_all_files_from_input_to_output_with_excludetxt.bat new file mode 100644 index 0000000..e43ddc2 --- /dev/null +++ b/9_Double_Click_Me_To_COPY_all_files_from_input_to_output_with_excludetxt.bat @@ -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 +