pk7272 Posted June 13, 2016 Share Posted June 13, 2016 I have 2 folders :- Folder A and Folder B, Is there a way to compare the contents of the files present inside them .. Regards Link to comment Share on other sites More sharing options...
orbs Posted June 13, 2016 Share Posted June 13, 2016 @pk7272, first, report your thread and ask a mod to move it where it belongs - the General Help and Support forum. second, think: if you were a script, how would you do it...? right! first list all the files in both folders into two arrays, then compare the arrays. this should give you an overview on which files exist on this folder and not the other. then extend your script: while listing the files, record their modify time. this will enable you to see which files were modified. and if you really must, you can read the content of the files to see where a change of contents exists. now try scripting it. hint: google "autoit list files in folder" is a good starting point. Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 13, 2016 Moderators Share Posted June 13, 2016 Thread moved. @pk7272 please pay attention to where you post. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
argumentum Posted June 14, 2016 Share Posted June 14, 2016 19 hours ago, pk7272 said: I have 2 folders :- Folder A and Folder B, Is there a way to compare the contents of the files present inside them .. Regards yes, use _FileListToArray() for each folder then loop through one another to compare the values/fileName in each array. Is a nice project to learn AutoIt. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. 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