tom35i Posted June 22, 2009 Share Posted June 22, 2009 (edited) HeyAt work we have a migration program but the some times if we overload the server certain files will not copyWhat 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 PCI have looked around for the past 5 days for help with this but i am unable to even find the compare functionAny help would be greatly appreciatedFlow Diagram Of the ProgSelect 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 June 22, 2009 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 Link to comment Share on other sites More sharing options...
jvanegmond Posted June 22, 2009 Share Posted June 22, 2009 There is no compare function, only a compare operator. This is: == Example: If (1 == 2) Then ; this will never happen EndIf github.com/jvanegmond Link to comment Share on other sites More sharing options...
GerrOrneq Posted June 22, 2009 Share Posted June 22, 2009 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/?DownloadHope 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 Link to comment Share on other sites More sharing options...
KaFu Posted June 22, 2009 Share Posted June 22, 2009 Or give my program SMF a try , 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 ... OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
99ojo Posted June 22, 2009 Share Posted June 22, 2009 (edited) 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/?DownloadHope that has helped.Good LuckHi,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 June 22, 2009 by 99ojo Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now