Page 1 of 1

Compare 2 TEXT FILES

Posted: Thu Nov 16, 2006 5:58 pm
by ganapkg
HI there.....
I have been using robotask for about a month already and i got a question to ask.
I have two folders which contains all contains .csv files that are FOLDER A and FOLDER B.
I want to copy all the files' name (without the path) in FOLDER A to a text file say for example TEXT1.txt. The same thing goes to FOLDER B but in a different text file say for example TEXT2.txt
The next thing i want to do is compare both the text file......and copy those files which are not in FOLDER A from FOLDER B.
Is this scenario possible???
I do not prefer to use File Monitor.
Please help
THANK YOU
 
 
 
 

Compare 2 TEXT FILES

Posted: Wed Nov 22, 2006 2:40 am
by Oleg
Why you don't want to use "Synchronize folders" action? This can easily copy newest files from folder A to folder B

Also, there is a way to copy files, which doesn't exists in folder A, from folder B without comparison of text files. Do you want an example?

Compare 2 TEXT FILES

Posted: Wed Nov 22, 2006 6:44 pm
by ganapkg
Hi,
I would really appreciate if you could provide me with an example as you mentioned earlier.
Thank you very much

Compare 2 TEXT FILES

Posted: Thu Nov 23, 2006 12:51 am
by Oleg
No problem. See the following example. This task copies only files from c:\source to c:\dest, which doesn't exist in destination folder.

Compare 2 TEXT FILES

Posted: Thu Nov 23, 2006 12:59 am
by Oleg
BTW: Maybe you will find something else useful in our task repository