Could you please tell me how to write a SCRIPT for
1) Compare 2 folders ( directory and sub directory) and show difference in the content of files.
For every file which is different a different comparison file (in html) needs to be created.
For Example
H:\new and H:\old are to be compared
if files in H:\new are t1.txt,t2.txt,t3.txt and
if files in H:\old are t1.txt,t2.txt,t3.txt
if files H:\new\t1.txt is same as H:\old\t1.txt other two files are different
then comparison should have
a) t2.html (containing side-by-side layout difference for t2.txt in old and new directory)
b) t3.html (containing side-by-side layout difference for t2.txt in old and new directory)
With the below script we can compare only 1 file whose names are known :
file-report layout:side-by-side output-to:"%3\statisticsreport.html" options:ignore-unimportant,display-context &
output-options:html-color &
H:\new\t2.txt H:\old\t2.txt
Can we get all file names which are different?
2) Show list of files in the directory using script
Example::
Rules-Based Comparison of
H:\new to H:\old
4 files in 1 folders
3 files match exactly
---------------------
t1\a1.txt
t1\a2.txt
t1\a3.txt
1 files don't match
-------------------
t1\ss.txt
Could you please help me out at the earliest:
1) Compare 2 folders ( directory and sub directory) and show difference in the content of files.
For every file which is different a different comparison file (in html) needs to be created.
For Example
H:\new and H:\old are to be compared
if files in H:\new are t1.txt,t2.txt,t3.txt and
if files in H:\old are t1.txt,t2.txt,t3.txt
if files H:\new\t1.txt is same as H:\old\t1.txt other two files are different
then comparison should have
a) t2.html (containing side-by-side layout difference for t2.txt in old and new directory)
b) t3.html (containing side-by-side layout difference for t2.txt in old and new directory)
With the below script we can compare only 1 file whose names are known :
file-report layout:side-by-side output-to:"%3\statisticsreport.html" options:ignore-unimportant,display-context &
output-options:html-color &
H:\new\t2.txt H:\old\t2.txt
Can we get all file names which are different?
2) Show list of files in the directory using script
Example::
Rules-Based Comparison of
H:\new to H:\old
4 files in 1 folders
3 files match exactly
---------------------
t1\a1.txt
t1\a2.txt
t1\a3.txt
1 files don't match
-------------------
t1\ss.txt
Could you please help me out at the earliest:
Comment