my site don´t execute commands
Posted on 2011-03-01
I made a small site, where the main onjective is to have run a few commands to start some presentations in other pcs.
I made some .bat files with psexec commands I converted these files into executables, this files , if I run it, it send the order to start presentation in other pcs but if I click on the site it don´t run, the files have permissions.
the code used in the site to execute de commands is:
"protected void lnkbComp1Inicializar_Click(object sender, EventArgs e)
System.Diagnostics.Process process1 = new System.Diagnostics.Process();
process1.StartInfo.WorkingDirectory = Request.MapPath("~/");
process1.StartInfo.FileName = Request.MapPath(@"ControloRemoto/GenerationASE/apresentacao.exe");
the page is done in ASP.NET C #
appreciate any help .:D