Naveen Singh

Naveen Singh

  • NA
  • 10
  • 2.5k

Compare Files in Two Directories using C# by reading XML

Jul 25 2014 11:35 PM
Hi Friends, I need your help in creating a program Windows Application C# program with below requirement.

Purpose of program: Compare Files in two directories and display result in datagridview by reading XML file each nodes data using C#.

1. Program will upload and read .XML file and display the result in DataGridview.
2. Then program will use DataGridview data or XML node data and find the files in two directories. As shown in below
3. Display the files search details from two directories like Size, Last Modified date, Name of files
<deployment>
<metadata>
<title>XML dataFile having files Directory</title>
<date>26-07-2014</date>
<author>Ghost_Rider</author>
<svnrevision>svn://10.267.119.194/Development/Trunk</svnrevision>
</metadata>
<csvfiles>
<csv>
<file>load\data\safetoload\doc_typ\CSVdata1_doc_typ.csv</file>
<loadCtl>data\safetoload\doc_typ\doc_typ.ctl</loadCtl>
<AffectedTables>
<table tname="doc_typ"/>
</AffectedTables>
</csv>
<csv>
<file>load\data\safetoload\doc_typ_arg\CSVdata2.csv</file>
<loadCtl>data\safetoload\doc_typ_arg\doc_typ_arg.ctl</loadCtl>
<AffectedTables>
<table tname="doc_typ_arg"/>
</AffectedTables>
</csv>
<csv>
<file>load\data\safetoload\doc_lblfmt\CSVdata3.csv</file>
<loadCtl>data\safetoload\doc_lblfmt\doc_lblfmt.ctl</loadCtl>
<AffectedTables>
<table tname="doc_lblfmt"/>
</AffectedTables>
</csv>

<csv>
<file>load\data\safetoload\dscmst\CSVdata4.csv</file>
<loadCtl>data\safetoload\dscmst\dscmst.ctl</loadCtl>
<AffectedTables>
<table tname="dscmst"/>
</AffectedTables>
</csv>

<csv>
<file>load\data\safetoload\lblfmt\CSVdata5.csv</file>
<loadCtl>data\safetoload\lblfmt\lblfmt.ctl</loadCtl>
<AffectedTables>
<table tname="lblfmt"/>
</AffectedTables>
</csv>


</csvfiles>
<files>
<labels>
<label>
<directories>
<dir>labels</dir>
</directories>
<labelFiles>
<labFile>LABEL\LabelFile1.POF</labFile>
<labFile>LABEL\LabelFile2.lbl</labFile>
<labFile>LabelFile3.msql</labFile>
</labelFiles>
</label>
</labels>
</files>
</deployment>


Or If Any body is having better idea then please feel free to share.

Answers (1)