Solved

my site don´t execute commands

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
HTTP POST URL 2 88
SP to delete duplicates 15 62
JQuery tracking event. 3 57
Interview question Javascript, database 12 33
To properly understand GitHub, let’s divide it into two words ‘Git’ and ‘Hub’. Git is basically a ‘Distribution Version Control’ (DVC) and ‘Source Code Management’ (SCM) system widely used by software programmers while Hub means the efficient centre…
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 arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

867 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now