0

I have program A windows application and program B another windows application. In program B I need to open program A config file. (App.config) I want to open that in a note pad. How can I do this?

2 Answers 2

1

You could use the Process.Start method to launch notepad.exe and specify the path to the file:

Process.Start("notepad.exe", "c:\path_to_a\app.config");
Sign up to request clarification or add additional context in comments.

3 Comments

Thanks. This is wht I wanted
If this post helped you solve the problem you were having you might consider marking it as answer by clicking on the tick next to it: meta.stackexchange.com/questions/5234/…
If I want to open that notepad as read only how can I do that?
1

Very Simple ,

string filename = "C:\Users\Documents\Visual Studio 2010\Projects\myproject\app.config";

Start new process

Process.Start("notepad.exe",filename);

1 Comment

Thnx.This is working. If I want to open that notepad as read only how can I do that?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.