using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Test_tsRUNexe : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
try
{
System.Diagnostics.Process.Start(@"c:\GetApplicationBG.exe");
#region Sample
// open text file in notepad (or another default text editor)
//System.Diagnostics.Process.Start(@"c:\textfile.txt");
// open image in default viewer
//System.Diagnostics.Process.Start(@"c:\image.jpg");
// open url in default web browser
//System.Diagnostics.Process.Start("http://www.csharp-examples.net");
// open PDF file
//System.Diagnostics.Process.Start(@"c:\document.pdf");
#endregion
}
catch (Exception)
{
throw;
}
}
}
沒有留言:
張貼留言