Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
The question is not entirely clear. Is the list of files known in advance, or any 10 files, or are there only 10 files in a folder? How to understand
checked in this folder that it exists? Do you admit that copying was unsuccessful, or is a strictly defined order of copying important to you?
Use xcopy. Here is an example that copies all files from the dirA folder to the dirB folder
xcopy dirA/*.* dirB
if errorlevel 1 (
rem обработа ошибки
)
rem нет ошибки
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question