How to assign Value to Key in App.config of C# win app ?
Posted
by karthik
on Stack Overflow
See other posts from Stack Overflow
or by karthik
Published on 2010-05-11T02:49:22Z
Indexed on
2010/05/11
2:54 UTC
Read the original article
Hit count: 254
I am using the below string in my code :
string AAR_FilePath = "\"C:\\MySQL\\MySQL Server 5.0\\bin\\mysqldump\"";
which i dont want to hardcore in my code. So i need to use that in my app.config I tried to give the same value as,
<add key="Path_SqlDump" value="\"C:\\MySQL\\MySQL Server 5.0\\bin\\mysqldump\""></add>
But the above gives me error, because of the quotes.
All i need is, i should be able to assign "\"C:\MySQL\MySQL Server 5.0\bin\mysqldump\""
to a string. HOW ?
© Stack Overflow or respective owner