G.C
G.C

Reputation: 119

Compare filename only for files 2 folder using FC

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

Answers (1)

Stephan
Stephan

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

Related Questions