I have lots of folders in D:\FolderA and at some point most (but not all) of the folders where copied to D:\FolderB. What is the best way to list all the "missing" folders in FolderB?
If you're on Windows XP, you can use Windiff.exe utility to compare two directories.
Another alternative is to use WinMerge which is an open-source differencing and merging tool for Windows. WinMerge can compare both folders and files, presenting differences in a visual text format that is easy to understand and handle. Below are some screenies.
Folder Comparison Results:
Folder Compare Tree View:
This should be easy enough in PowerShell.
Aim: Get a list of all the sub-folders of folder
The output can then be saved into a file or further processed (eg. to create a script to copy the missing folders).