I am manipulating a whole bunch of files and placing them in a different directory. What I need to do now is find out which files are in the original directory that aren't in the output directory (the problem is being processed by a dozen computers). Is there any script I can run on Windows that will display this?
migrated from stackoverflow.com Jan 29 '10 at 7:44
|
Use WinDiff. It comes with Visual Studio and Platform SDK and can be downloaded separately. It's mainly to compare files, but it also allows you to recursively compare folders. |
|||
|
|
|
If you are looking for a manual process and have visual studio installed, then you can use windiff.exe to show the differences. |
|||
|
|
|
In PowerShell:
|
|||
|
|
you can try this vbscript, no need to download any stuff.
output
|
|||
|
|
|
FreeCommander does this quickly. Pick folder on right, pick folder on left, compare. It's a handy utility. |
|||
|
|
In cygwin
The comm command gives three columns of output unless you suppress them. I used options
type
In CMDNote haven't tested the below I assume the pipe works in CMD. If you got findutils and coreutils from here http://gnuwin32.sourceforge.net/packages.html (because you don't want cygwin) and the less package (but you can use
Note replace $... and #...# with the paths if you don't know how to make variables :) |
|||||
|