简体   繁体   中英

How to copy all *.txt files from subfolder to batch file folder using this batch-file?

I have main folder that contains "batch.bat" file and 1 subfolder named "Carrol". This "Carrol" subfolder contains many files with different types. I need to copy all txt files from "Carrol" subfolder to main folder with this "batch.bat" using commands of this "batch.bat" file

How can I do that?

内部batch.bat

for %%i in (Carrol\*txt) do move Carrol\%%i %~dp0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM