NT/Batch Script question

PreOmegaZero

Diamond Member
Mar 12, 2002
4,857
21
91
I'm working on an Batch script that:
A) migrates all files and folders from the source folder to a temporary Migration folder (the backup folder)
B) Then copies certain files and folders from the Migration folder to the root of:

"%APPDATA%\Manufacturer\Application"

Everything seems to be going fine using xcopy so far, except for one folder.
The folders are generated by the application and are named x.fol ('x' being whatever it was called in the application, example: 'test.fol').
xcopy doesn't seem to like this directory regardless of the switches I throw at it (currently /E /H /R /K /Y /Q).
My line is configured as such:

xcopy C:\Migration\%username%\*.fol "%APPDATA%\Manufacturer\Application\*.fol" /E /H /R /K /Y /Q

This copies over the .fol folder (called test.fol in this case), but doesn't copy over the 3 files located within it.

The reason I even use wildcards is because this script will be run across many machines and the .fol folders can be named differently and I want the script to copy each .fol folder over and the files within.
Example: The migration folder has 'test.fol', 'test2.fol' & 'test3.fol'. I want all 3 .fol's copied over with all the files to:

%APPDATA%\Manufacturer\Application\test.fol
%APPDATA%\Manufacturer\Application\test2.fol
%APPDATA%\Manufacturer\Application\test3.fol


I must be missing something obvious or maybe xcopy can't do this correctly?
Any assistance would be appreciated.