I have a comparing task as below, how to do it?
#1. Compare two folders via scripts.
#2. If different, Export differences report and open it with IE.
#3. If identical, Do others tasks.
After investigating, I found
#1. BC always export diffs report even if two folders are identical.
So I cannot check file exist or file size.
#2. BC does not support return result (errorlevel) when comparing folders.
So I have to export diffs report, parse it and get comparing result.
Do you have any suggestion for me? Thanks.
#1. Compare two folders via scripts.
#2. If different, Export differences report and open it with IE.
#3. If identical, Do others tasks.
After investigating, I found
#1. BC always export diffs report even if two folders are identical.
So I cannot check file exist or file size.
#2. BC does not support return result (errorlevel) when comparing folders.
So I have to export diffs report, parse it and get comparing result.
Do you have any suggestion for me? Thanks.
Comment