You're Welcome!
I didn't use an "If exist delete" statement because the file is automatically deleted on every run when the header is written to the file by this line:
Code:
Echo Files that are found in folder %_DirA% but NOT in folder %_DirB%>duplicat.txt
The single > creates a new file.
Guess I should have used one though, just in case someone doesn't need that header in the output. Thanks for pointing that out.
If your issue has been resolved you can mark this thread Solved by using the Thread Tools at the Top Right of this thread (above the first post)
Jerry
__________________
Microsoft MVP - Windows Desktop Experience
Of course I know all the answers; I just don't always match the answers to the right questions.
Rated R for Violence -- When your PC flies through a window, that's violent, right?