Solved

my site don´t execute commands

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

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…
Online collaboration is quickly becoming embedded in the workplace, and its benefits are tangible. See what the current landscape looks like and what the future holds for collaboration tools and the future of work.
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

747 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

12 Experts available now in Live!

Get 1:1 Help Now