Solved

my site don´t execute commands

Posted on 2011-03-01
4
174 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
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

The task of choosing a web design company to build a website for your business should never be taken in a light manner. Provided the fact that your website will act as a representative to your business and will be responsible for imposing an online …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

766 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