Solved

my site don´t execute commands

Posted on 2011-03-01
4
177 Views
Last Modified: 2013-12-09
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");
        process1.Start();
    }"


the page is done in ASP.NET C #

appreciate any help .:D
0
Comment
Question by:portuga2011
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 25

Expert Comment

by:kevp75
ID: 35017105
the IUSR_MACHINENAME account needs to have permissions, both on the file to run, and on the folders/files it is supposed to run on
0
 

Accepted Solution

by:
portuga2011 earned 0 total points
ID: 35026037
thanks kevp75,I just had to add some bat files to delete some processes on remote machines you do not block the system. problem solved
0

Featured Post

2017 Webroot Threat Report

MSPs: Get the facts you need to protect your clients.
The 2017 Webroot Threat Report provides a uniquely insightful global view into the analysis and discoveries made by the Webroot® Threat Intelligence Platform to provide insights on key trends and risks as seen by our users.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question