Jump to content
pk7272

compare contents of files in 2 diffrent folders

Recommended Posts

pk7272

I have 2 folders :- Folder A and Folder B,

Is there a way to compare the contents of the files present inside them ..

Regards

Share this post


Link to post
Share on other sites
orbs

@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.

Share this post


Link to post
Share on other sites
JLogan3o13

Thread moved. @pk7272 please pay attention to where you post.


√-1 2^3 ∑ π, and it was delicious!

Share this post


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

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

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.