Тёмный

How to Copy a List of Files From One Folder to Another - Windows 10 Batch Script Tutorial 

HandyAndy Tech Tips
Подписаться 24 тыс.
Просмотров 39 тыс.
50% 1

Do you have a list of files - perhaps in a text (*.txt) document - that you want to copy from one folder to another? Save yourself time and use a batch script! In this video, I'll show you how to write a bat file which goes through the list and copies each file in turn. It even recreates the exact directory/folder structure of the source in the destination.
TOPICS COVERED:
- Changing the code page (CHCP) of a command prompt console
- Using the FOR /F loop
- Copying directories and files with XCOPY
--
If you enjoyed this video, please SUBSCRIBE to HandyAndy Tech Tips for more tutorials!

Наука

Опубликовано:

 

30 ноя 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 34   
@iago4699
@iago4699 3 года назад
I was asked to copy more than 300 files in a folder with more than 24k files at my job. I would have to search them individually. This video helped me a lot. Thank you.
@akshayvartak1984
@akshayvartak1984 2 года назад
This was exactly what I wanted and it worked really fine. Thanks for the video.
@andrescarrasco1248
@andrescarrasco1248 2 года назад
pal, I'm a photographer, my clients send me the chosen photos on a text document with the number of the photos, most of the times maybe 300 out of 2000 files, you just saved me hours of manual photo choosing
@level-1khanpur633
@level-1khanpur633 Год назад
YOU SAVE MY DAY SIR . THANKS AGAIN ♥
@alwaysflippin3150
@alwaysflippin3150 Год назад
My first script - thank you!
@level-1khanpur633
@level-1khanpur633 Год назад
GREAT EFFORT . THANKS ALOT SIR . THUMS UP
@puneetmaheshwari
@puneetmaheshwari Год назад
wow this was informative thankyou
@nikiss8
@nikiss8 2 года назад
excellent. I was able to use * for partial match. "files starting with 1*", just one line was able to copy all that fall under the criteria.
@2nickstop
@2nickstop Год назад
thank you it's save my too much time
@BoscoRemmy
@BoscoRemmy 2 года назад
Thank you HandyAndy! I was able to move 1000+ files with ease. I have a new adaptation to this that I would like your opinion on. How would you be able to take a step further and copy the files to different folders? I.e. The Abba files go into a new destination Abba folder, Motzart files to a new destination Motzart folder all with one script? These new destination folders are predetermined and listed in a corresponding excel spread.
@grahamtunnadine4427
@grahamtunnadine4427 Год назад
Thanks Andy, Which of your filenames is the list of mp3s? or is the script generating the file list? I already have a file list of images, exported from the software I am using. i.e. I have a text document with a list of image files (thousands) I want to move them to somewhere safe so I can delete everything else.
@oddedated5602
@oddedated5602 Год назад
thank u so much🤩
@naveenthiru5936
@naveenthiru5936 3 года назад
Legend!!
@mohammedifteqaruddin2802
@mohammedifteqaruddin2802 2 года назад
Thanks bro
@eljeffe4155
@eljeffe4155 2 года назад
when copying the files from the origin folder to the destination folder can we rename them while executing the code? to your example, let's say I want to transfer 4 mp3 folders and in the destination folder I want one to be renamed as rock, another one jazz and so on. In essence what I'm asking is if we can map the origin folder name to a new/different destination name that might vary for each entry. Thank you in advance.
@TheBigshow1977
@TheBigshow1977 2 года назад
I have a similar requirement but where your index file contains file names mine contains folder names. So what im looking to do is find the folder name and then copy the folder and contents to a new location. Any idea how to do this?
@saikishor9833
@saikishor9833 Год назад
Can you please let me know how can use a variable PATH for which i can assign path of the src folder location
@poopfarter544
@poopfarter544 3 года назад
For me it says it can't find the file and that 0 files were copied for every song. Any way I could fix this?
@roxasofthedark
@roxasofthedark 2 года назад
Same, find a fix?
@poopfarter544
@poopfarter544 2 года назад
@@roxasofthedark no I didn't end up finding any. I just found out about the send to option in musicbee so I was able to copy my playlist.
@ntimes6748
@ntimes6748 2 года назад
Same
@davidoneill4859
@davidoneill4859 Год назад
Andy, is there a command I can add to the script to instruct it to overwrite all files that may already exist in the destination folder?
@davidoneill4859
@davidoneill4859 Год назад
/Y
@skullmammon909
@skullmammon909 6 месяцев назад
but what if I want just a certain thing from each file to be copied into a new folder ?
@Blogs_immi
@Blogs_immi Год назад
i want copy some file from one folder to another folder .. but i can't do via this way.. can you guide me
@alyssaaly4129
@alyssaaly4129 3 года назад
please make a video about how did you made .txt file, its looks nice.
@andreh1777
@andreh1777 3 года назад
Hey, that's notepad++. you can simply google and download this application.
@oleof635
@oleof635 2 года назад
how to do it to a file wich is being used by another process (blocked)
@florentbenoit8893
@florentbenoit8893 2 года назад
the .bat file stays a .txt file for my Win10
@imemevines
@imemevines Год назад
go to the file and rename it and add .bat at the end instead of .txt
@Amit3D2Y
@Amit3D2Y 2 года назад
just type .MP3 in search bar only mp3 files shows to you without folder
@MrTheUpgrade
@MrTheUpgrade Месяц назад
Thats not the point, from lets say 1000 mps this will only copy however many are listed in the list
Далее
Move or Copy List of Files
14:38
Просмотров 2,5 тыс.
Batch Script to Move File
6:37
Просмотров 21 тыс.
40 Windows Commands you NEED to know (in 10 Minutes)
10:54
Quickly creating a list of files in a folder
3:44
Просмотров 343 тыс.
How to Create a Batch (.bat) File in Windows
5:02
Просмотров 151 тыс.
Batch Script to Delete Files in a Folder
12:38
Просмотров 19 тыс.
Развод с OZON - ноутбук за 2875₽
17:48
Mac Studio из Китая 😈
0:34
Просмотров 145 тыс.
Собери ПК и Получи 10,000₽
1:00
Просмотров 1,7 млн