App.Config file in console application C#

Posted by user1240679 on Stack Overflow See other posts from Stack Overflow or by user1240679
Published on 2012-04-09T05:24:07Z Indexed on 2012/04/09 5:28 UTC
Read the original article Hit count: 161

Filed under:
|


I have a console application in which I want to write the name of a file.

Process.Start("blah.bat");

Normally, I would have something like that in windows application by writing the name of the file 'blah.bat' to Settings file in Properties.
However, here I didn't find any Settings file and I added an app.config for the same purpose.

I am not sure what to write here in app.config, that would lead to me to achieve similar thing as in windows forms.
For eg: In windows forms. Process.Start(Properties.Settings.Default.BatchFile);
where BatchFile is a string in settings file in Properties.

© Stack Overflow or respective owner

Related posts about c#

Related posts about console