Jump to content

compare contents of files in 2 diffrent folders

Recommended Posts


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.

Link to post
Share on other sites
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 ..


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.

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...