Hi MikeK007-2413,
If you want to use xcopy:
xcopy /s foo???.txt g:\someplace
This will hold the directory structure.
If you don't want the directory structure you can do the following:
for /r %i in (foo???.txt) do xcopy /Y "%i" g:\someplace
If you are using this in a batchfile you should double the % like this:
for /r %%i in (foo???.txt) do xcopy /Y "%%i" g:\someplace
This is an excellent guide to copy:
https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/xcopy
I hope this answers your question.
---------------------------------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept as answer--