Compare 2 TEXT FILES

Discuss RoboTask here
Post Reply
ganapkg
Posts: 5
Joined: Thu Nov 16, 2006 5:41 pm

Compare 2 TEXT FILES

Post 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
 
 
 
 
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Compare 2 TEXT FILES

Post 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?
Last edited by Oleg on Thu Nov 23, 2006 4:16 am, edited 1 time in total.
ganapkg
Posts: 5
Joined: Thu Nov 16, 2006 5:41 pm

Compare 2 TEXT FILES

Post by ganapkg »

Hi,
I would really appreciate if you could provide me with an example as you mentioned earlier.
Thank you very much
Last edited by ganapkg on Wed Nov 22, 2006 10:45 pm, edited 1 time in total.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Compare 2 TEXT FILES

Post 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.
Last edited by Oleg on Thu Nov 23, 2006 5:00 am, edited 1 time in total.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Compare 2 TEXT FILES

Post by Oleg »

BTW: Maybe you will find something else useful in our task repository
Post Reply