Jump to content
Sign in to follow this  
tom35i

Compare Folders

Recommended Posts

tom35i

Hey

At work we have a migration program but the some times if we overload the server certain files will not copy

What i would like to do is be able to compare the file sizes of the original folder on the server and the destination folder on the PC

I have looked around for the past 5 days for help with this but i am unable to even find the compare function

Any help would be greatly appreciated

Flow Diagram Of the Prog

Select folder on the server

(inside this folder is sub folder for mydocs, outlook, etc)

each sub folder is compared to the relevant restore location on the PC

msgbox containing file size of each folder is displayed so that the user can compare

Edited by tom35i

YEA BOIhttp://www.myspace.com/comeoutfiringhttp://www.last.fm/music/comeoutfiringhttp://www.facebook.com/pages/comeoutfiring/75676261698http://www.reverbnation.com/comeoutfiringhttp://www.purevolume.com/comeoutfiringhttp://www.twitter.com/comeoutfiringhttp://www.youtube.com/comeoutfiring

Share this post


Link to post
Share on other sites
jvanegmond

There is no compare function, only a compare operator. This is: ==

Example:

If (1 == 2) Then
    ; this will never happen
EndIf

Share this post


Link to post
Share on other sites
GerrOrneq

Hi,

Just so's you wont have to re-invent the wheel, there is a very good commercial app called "Beyond Compare" that can perform quite complicated (and simple) synchronisation.

If you want to do it for free then you can do worse than d/l a program called "Clonespy" it will do a comparison on two folders and their subfolders and highlight all files that are equal, that way you will know if any files are different.

And finally if you want to incorporate something into a routine in AutoIt you have running, then there are scripts (on this forum) to perform MD5 hashes of files.

that way you can perform a MD5 hash of the selected files in the original folders and perform the hash again on the files after the copy, if there are any differences they will become apparent and you can re-copy the offending files.

Beyond compare = http://www.scootersoftware.com/

CloneSpy = http://www.clonespy.com/?Download

Hope that has helped.

Good Luck


Quote of the week:"BASIC programmers never die, they GOSUB and don't RETURN." -- UnknownWisdom of the ages:

  

  • I'd be unstoppable... if not for law enforcement and physics.
  • Marriage, the number 1 cause of divorce.
  • Don't steal... the government hates competition.
  • Irish Government Motto: We’ve got what it takes to take what you’ve got.
  • Birthdays are good for you. Statistics show that the people who have the most live the longest.
  • Failure is not an option. It comes bundled with your Microsoft product.-- Ferenc Mantfeld
  • If you learn from your mistakes, then why ain't I a genius?! -- Anonymous
  • Remember, live every day as if it was your last day! one day you will be right.
  • How is it one careless match can start a forest fire, but it takes a whole box to start a campfire?
  • Sure my system is secure, it just locked up again.
  • I haven't lost my mind; I have a tape back-up somewhere.  ~Author Unknown

Share this post


Link to post
Share on other sites
KaFu

Or give my program SMF a try :D , check both directories and search for duplicates. In the report there should be exactly one duplicate of each file if your copy succeded, otherwise filter for non-duplicate files in the report :D ...

Share this post


Link to post
Share on other sites
99ojo

Hi,

Just so's you wont have to re-invent the wheel, there is a very good commercial app called "Beyond Compare" that can perform quite complicated (and simple) synchronisation.

If you want to do it for free then you can do worse than d/l a program called "Clonespy" it will do a comparison on two folders and their subfolders and highlight all files that are equal, that way you will know if any files are different.

And finally if you want to incorporate something into a routine in AutoIt you have running, then there are scripts (on this forum) to perform MD5 hashes of files.

that way you can perform a MD5 hash of the selected files in the original folders and perform the hash again on the files after the copy, if there are any differences they will become apparent and you can re-copy the offending files.

Beyond compare = http://www.scootersoftware.com/

CloneSpy = http://www.clonespy.com/?Download

Hope that has helped.

Good Luck

Hi,

have also have a look at robocopy from Microsoft with a lot of cmdline options. (Windows2003 Ressource Kit)

You can perform a dummy copy with a log file; so you can see it there are any differences beetween source and target.

You might use robocopy as initiator for the copy job. So you can see in the log file if there are any errors.

;-))

Stefan

Edited by 99ojo

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×