.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Articles >> Windows Application >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Open System Files/Folder Using Windows Form Application C#.

Posted By:shiv chandra       Posted Date: June 18, 2011    Points: 200    Category: Windows Application    URL: http://www.dotnetspark.com  

Open System Files/Folder Using Windows Form Application.
 

From this article you can learn how to open file/folder using window application. With just single line of code you can open file folder. For that you need to use

System.Diagnostics.Process.Start("FileOrFolderName")

You can see screenshot of application below.


Sample Code:

private void BtnAddRemove_Click(object sender, EventArgs e)
{
    System.Diagnostics.Process.Start("appwiz.cpl");
}

private void BtndDateTime_Click(object sender, EventArgs e)
{
    System.Diagnostics.Process.Start("timedate.cpl");
}

private void BtnSystemProperty_Click(object sender, EventArgs e)
{
    System.Diagnostics.Process.Start("sysdm.cpl");
}

private void BtnExplorer_Click(object sender, EventArgs e)
{
    System.Diagnostics.Process.Start("Explorer.exe");
}

private void BtnControlPanel_Click(object sender, EventArgs e)
{
    System.Diagnostics.Process.Start("Control.exe");
}

 Subscribe to Articles

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend