|Thanks for the reply. I'll try your program tomorrow morning.|
Below is a copy of the script was working on. It is close, but no cigar. I couldn't determine how to go down one additional sub-directory, obtain a lists of the files, and then create a new file that contains the name of the root directory.
if not exist %level1a% md %level1a%
echo Please wait while files are copied...
for /f %%1 in ('dir /ad /b %level1%') do (
set /a directs +=1
if not exist !level1a!!level2! md !level1a!!level2!
for /f %%2 in ('dir /b') do (
copy %%2 !level1a!\!level2!\!level2!-%%2
set /a fils +=1
echo Copying of files is complete.
echo Sub-Directories = %directs%
echo Files copied = %fils%
echo Press any key to continue.....