possible to run a VBS from asp.net?

  • Thread starter Thread starter Alex
  • Start date Start date
A

Alex

anyone know how to run a VBS file from ASP.NET? I'm guessing there
are some permission pitfalls.
 
look into the processinfo class, here is some code
ProcessStartInfo psi = new ProcessStartInfo("notepad.exe");
psi.WindowStyle = ProcessWindowStyle.Hidden;

Process p = new Process();
p.EnableRaisingEvents = true;
p.Exited += new EventHandler(MyExited);
p.StartInfo = psi;
p.Start();

..... do stuff ...

p.Kill(); // Try killing the process
 
Back
Top