hi,
i want to open a text file(notepad) with using process command .
thank you.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Scott KnakePosted Jul 21, 2009, 7:41 AM
[System.Runtime.InteropServices.DllImport("shell32.dll")]
private static extern long ShellExecute(Int32 hWnd, string lpOperation,
string lpFile, string lpParameters, string lpDirectory, long nShowCmd);
private enum SW
{
SW_HIDE = 0,
SW_SHOWNORMAL = 1
}
private void OpenNotepad()
{
ShellExecute(0, "open", "notepad.exe", null, null, (long)SW.SW_SHOWNORMAL);
}