Hi all,
I have some differculty on writing a vbscript to do this. I have a script to create 2 txt files as follow,
For example:
In "server.txt", I have full paths and filenames,
\\server\ab\cd\ed\pp\pm\file1.xml
\\server\ab\cd\ed\pp\pm\file2.xml
....
In "client.txt", I have full paths and filenames,
\\client-01\c$\ab\pm\file1.xml
\\client-01\c$\ab\pm\file2.xml
....
The question is I need a vbscript to compare the files within the txt files if any change has been made. The following chart is my logic to read every line from client.txt and look for it from server.txt and compare the size and send email if any mismatch. Any help would be greatly appreciated.
Client.txt Server.txt
\\..\..\file1.xml >>> \\..\..\file1.xml
\\..\..\file2.xml
....so on....
\\..\..\file2.xml >>> \\..\..\file1.xml
\\..\..\file2.xml
....so on....
\\..\..\file3.xml >>> \\..\..\file1.xml
....so on....
I have some differculty on writing a vbscript to do this. I have a script to create 2 txt files as follow,
For example:
In "server.txt", I have full paths and filenames,
\\server\ab\cd\ed\pp\pm\file1.xml
\\server\ab\cd\ed\pp\pm\file2.xml
....
In "client.txt", I have full paths and filenames,
\\client-01\c$\ab\pm\file1.xml
\\client-01\c$\ab\pm\file2.xml
....
The question is I need a vbscript to compare the files within the txt files if any change has been made. The following chart is my logic to read every line from client.txt and look for it from server.txt and compare the size and send email if any mismatch. Any help would be greatly appreciated.
Client.txt Server.txt
\\..\..\file1.xml >>> \\..\..\file1.xml
\\..\..\file2.xml
....so on....
\\..\..\file2.xml >>> \\..\..\file1.xml
\\..\..\file2.xml
....so on....
\\..\..\file3.xml >>> \\..\..\file1.xml
....so on....