That was good!

)
--
All the Best,
Kelly (MS-MVP/DTS&XP)
Taskbar Repair Tool Plus!
http://www.kellys-korner-xp.com/taskbarplus!.htm
"Pegasus [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> "Anon E. Mouse" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Pegasus [MVP] wrote:
>>> "Anon E. Mouse" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> I've copied a large directory tree from my machine to an external disk.
>>>> I'd like to verify that everything copied accurately. How can I do
>>>> that?
>>>>
>>>> The "fc" command works well, but it doesn't have a switch that will do
>>>> subdirectories.
>>>>
>>>> I'm thinking that some combination of the "for" command and fc will do
>>>> it, but the syntax of for is escaping me.
>>>
>>> Here you go:
>>>
>>> @echo off
>>> SetLocal EnableDelayedExpansion
>>> set SourceDir=d:\logs
>>> set TargetDir=e:\Test
>>>
>>> for /F "delims=" %%a in ('dir /s /b "%SourceDir%"') do (
>>> set Name=%%a
>>> for %%b in ("!Name!") do (
>>> echo fc "%%~db%%~pb%%~nb%%~xb" "%TargetDir%%%~pb%%~nb%%~xb"
>>> )
>>> )
>>>
>>> Remove the word "echo" in the third line from the bottom to activate the
>>> batch file.
>> Thank you. This is excellent. And posted in only 20 min!
>>
>> Output is a bit verbose, so I have to pipe it to a file.
>
> Thanks for the feedback.
>