I have to unzip multiple folders present in a single folder using c#. I have the code for doing this and it is working fine. For using this code I have to select the file that is to be unzipped and then after unziping it I have to select the next zip file and unzip it and so on. This is a very long process. Can anyone tell me how to unzip all the zip folders present in the parent folder at one go.
ur soln has helped me........but along with the zip files there are some word documents present....so when the control comes to the word files it is throwing exception.......how do i make the code to ignore the word docs and just unzip the zip files.....
i have a little quiestion, about deserializing a custom type...I want to deserialized this custom type but actually i dont know it. What i mean is for example i have a type called TypeA - i serialized it. But when i want to deserialized i dont know what type i have at the xml file(for xml serialization). I want to find it out.
Is there way to find what type i have?
The only solution I know is to store the type during serialization. When deserializing, first deserialize the type description and deserialize the object afterwards, using a switch statement for the type to deserialize.
It took me a lot of time to find out how to do it. I will write an article about this subject for codeproject. I think it may be ready somewhere next week.
Thank you! It's really hard work, i couldnt found any topics about this problem. It's currious for me to see the way you do this, so i'll wait next week if you don't mind send me an email to firstname.lastname@example.org with the link of the topic.
The solution is to learn the basics about programming and the C# syntax. The simple answer is:<blockqoute>You can't define methods nested inside other methods like that.You define all of your methods at the same level and then call them from one another:
i have an xml
i am able to change into data table
and insert into database also...
StringReader xmlsr3 = new StringReader(region);
OleDbDataAdapter da3 = new OleDbDataAdapter("select * from drregion", m_Conn);
OleDbCommandBuilder cb3 = new OleDbCommandBuilder(da3);
da3.Update(dtab3); dtab3 = dset3.Tables;
like this it gets updated
now the problem is when xml string has a keywords (of databases)
while updating into database that is in the last statement
there is an error saying insert into syntax error
i need to change the
to [desc] (i could nt do it in xml ) there was another error if i do that
how can i do this
or is there any other way....