Skip to content

Instantly share code, notes, and snippets.

@klmlfl
Created September 13, 2016 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klmlfl/c8f6ae99ce92a1bdf8f16db90db13187 to your computer and use it in GitHub Desktop.
Save klmlfl/c8f6ae99ce92a1bdf8f16db90db13187 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Diagnostics;
using System.Threading.Tasks;
using System.Xml;
using Microsoft.Office.Interop.Outlook;
using OutlookApp = Microsoft.Office.Interop.Outlook.Application;
using System.IO;
using System.Text;
namespace WebEggplant.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
ViewBag.Message = "Smoke Test Web Controller";
return View();
}
public ActionResult Reports()
{
ViewBag.Message = "Test Results";
return View();
}
// [HttpPost]
public ActionResult Index2()
{
try
{
System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo(@"C:\Users\srahman\Documents\Visual Studio 2013\Projects\WebEggplant\env_setup_teardown\bin\Debug\env_setup_teardown.exe");
System.Diagnostics.Process.Start(psi);
ViewBag.Result = "Done";
}
catch (System.Exception ex)
{
ViewBag.Error = ex.Message;
}
return View();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment