Compare filename only for files 2 folder using FC

2.2k views Asked by At

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?

1

There are 1 answers

0
Stephan On

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)