Jump to content


Photo

comparing folders


  • Please log in to reply
7 replies to this topic

#1 fajw

fajw

    Useless waste of 0s and 1s

  • Banned
  • 2,434 posts

Posted 16 October 2011 - 09:12 PM

I've got a pair of folders that have lots of folders and files in them. They should be the same, but they're not. Is there a quick and easy way to compare them and see what the difference is?

#2 chrisbrownie

chrisbrownie

    Champion

  • Atomican
  • 4,227 posts

Posted 16 October 2011 - 09:26 PM

PowerShell:

$folder1 = gci "C:\folder1"
$folder2 = gci "C:\folder2"
Compare-Object $folder1 $folder2

This will tell you which files/folders exist on one side but not the other. If you need to check the contents of each file, more effort will be required.

#3 fajw

fajw

    Useless waste of 0s and 1s

  • Banned
  • 2,434 posts

Posted 17 October 2011 - 08:55 PM

I tried that and it didn't spit out anything. Any ideas? Thanks.

#4 aliali

aliali

    Titan

  • Super Hero
  • 24,486 posts

Posted 19 October 2011 - 01:51 PM

Winmerge perhaps?
http://winmerge.org/

Of course you are my bright little star,

I've miles and miles of files pretty files of your forefather's fruit,

and now to suit our great computer. You're magnetic ink.


#5 mudg3

mudg3

    Guru

  • Atomican
  • 9,053 posts
  • Location:Brisbane QLD

Posted 19 October 2011 - 08:48 PM

I tried that and it didn't spit out anything. Any ideas?

Thanks.



What OS did you enter that command on?
3930K ||Corsair H110 || ASUS Rampage IV ||16GB Corsair Vengence DDR3@1877mhz||ATI 7970||250gb Samsung 840||2x4tb||DELL2711||Corsair 650D|| ASUS Essence STX ||Audio Engine A2's||Aiaiai:TMA-1||Enermax 1050w|| Atomics resident filth

#6 fajw

fajw

    Useless waste of 0s and 1s

  • Banned
  • 2,434 posts

Posted 19 October 2011 - 09:26 PM

Winmerge perhaps?
http://winmerge.org/

I tried that before I posted; I couldn't get it to do what I wanted, but I'll try it again.

I tried that and it didn't spit out anything. Any ideas?

Thanks.



What OS did you enter that command on?

Windows 7 Ultimate SP1 x64

Could the issue be that one of the folders is accessed on another machine via the LAN?

#7 fajw

fajw

    Useless waste of 0s and 1s

  • Banned
  • 2,434 posts

Posted 20 October 2011 - 03:26 PM

Although it took a very long time, WinMerge did the trick. I don't know why I couldn't get it working before.

#8 drago13666

drago13666

    Champion

  • Atomican
  • 7,927 posts

Posted 01 November 2011 - 04:25 PM

i use freecommander that is like an explorer clone, has an option to compare and sync differences
Life, just like Schrödinger's cat, is both heaven and hell. It is only through death, when the true measure of our lives can be determinded, do we find out where we spend the rest of eternity.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users