I want to do a script that does the following :
- COPY All folders and all files from “D:\” to “F:\”
but - SKIP all folders containing a “skipthisfolder.txt” file
Which scripting language should I use? (in order to run it easily in Windows, without any third party software?) I thought about .BAT or VBS.
You could use a CMD batch file, like this:
EDIT: if you also need to skip subfolders if
skipthisfolder.txtfile is found, then this could be a solution: