Reputation: 119
i know the to compare files in 2 folder in window can use command fc [path A]* [path B]*
but if i want to compare filename only, what parameter i need to add or any other command in windows cmd prompt?
Upvotes: 0
Views: 2349
Reputation: 56238
to get differences (different file names) in two folders, you can use robocopy
:
robocopy /L /mir "d:\tmp\first" "d:\tmp\second" /njh /njs /ns /ndl
/L
does only list the files instead of copying. For the rest of the options, see robocopy /?
(/mir
to compare two folders, /n*
to suppress unneeded information)
Upvotes: 2