My first attempt failed

I set source E:\
took out line numbers
set target C:\My Folder (and created the folder)
took out echo in line 7
saved to a notepad named it test1.cmd
activated test1.cmd nothing happened
"Pegasus (MVP)"
> I assume that your 4754 files are spread over different
> folders. If so then you could use the following batch file:
> #1 @echo off
> #2 set Source=E:\My Files
> #3 set Target=D:\My Folder
> #4 if not exist "%Target%" md "%Target%"
> #5
> #6 dir /s /b /a-d "%source%\*.gbh" > c:\Files.txt
> #7 for /F "delims=" %%a in ('type c:\Files.txt') do echo copy /y "%%a"
> "%Target%
> #8 del c:\Files.txt
>
> You must, of course, remove the line numbers before running the
> batch file. You must also make sure that the target folder is not
> located under the source folder, in order to avoid a circular copy
> process. You need to remove the word "echo" in Line #7 in order
> to activate the batch file. Note also that "DOS" is an operating system
> introduced some 30 years ago. It is rarely used these days. What
> you probably meant in your question is the "Command Prompt"
> under Windows XP. DOS would not understand the above batch file.
>