Hi All,
I need to compare two files with the same name in two different directories. What I want to do is to first look if the file exists in one directory. Then to check if the same file exists in the second directory.
For example: I have two directories, i.e. D:\directory1 and D:\directory2. I receive file in directory1 and after receiving first check if the same file already exists in directory2. If it does, rename the file in the directory2 with the suffix '_1'. The file that I receive in Directory1 is not always the same but is suffixed with a datestamp.
Any idea how to do it?
I need to compare two files with the same name in two different directories. What I want to do is to first look if the file exists in one directory. Then to check if the same file exists in the second directory.
For example: I have two directories, i.e. D:\directory1 and D:\directory2. I receive file in directory1 and after receiving first check if the same file already exists in directory2. If it does, rename the file in the directory2 with the suffix '_1'. The file that I receive in Directory1 is not always the same but is suffixed with a datestamp.
Any idea how to do it?