473,326 Members | 2,104 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Running Executable Files Over a Network

Hi,

I'm creating a website that is required to run an executable file over
a network. I'm currently using the System.Diagnostics namespace with
code similar to this:

Process p = new Process();

p.StartInfo.FileName = "\\pc-name\\dir\\program-name.exe";

p.Start();

The above code does not work I'm assuming it is the Process doesn't
have to access rights to the PC. I don't know how to assign these
parameter, or if what I'm doing is even possible.

Any help would be much appreciated.

Thanks

Simon

May 10 '07 #1
2 1417
"accyboy1981" <ac*********@gmail.comwrote in message
news:11**********************@l77g2000hsb.googlegr oups.com...
Hi,

I'm creating a website that is required to run an executable file over
a network. I'm currently using the System.Diagnostics namespace with
code similar to this:

Process p = new Process();

p.StartInfo.FileName = "\\pc-name\\dir\\program-name.exe";

p.Start();
Where do you need to run this process? On the client or on the server?
--
John Saunders [MVP]
May 10 '07 #2
I suggest you use impersonation to have ASP.NET run under a different user
account that has the necessary network access.
At first, for testing purposes, I'd suggest you have it run under your user
account since you know you have the required access to the folder.

<!-- Web.config file. -->
<identity impersonate="true" userName="Redmond\BillG" password="Melinda"/>

Please note that this will then result in the referenced executable file to
be retrieved from the specified network computer and run on the local web
server.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"accyboy1981" <ac*********@gmail.comwrote in message
news:11**********************@l77g2000hsb.googlegr oups.com...
Hi,

I'm creating a website that is required to run an executable file over
a network. I'm currently using the System.Diagnostics namespace with
code similar to this:

Process p = new Process();

p.StartInfo.FileName = "\\pc-name\\dir\\program-name.exe";

p.Start();

The above code does not work I'm assuming it is the Process doesn't
have to access rights to the PC. I don't know how to assign these
parameter, or if what I'm doing is even possible.

Any help would be much appreciated.

Thanks

Simon
May 10 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Johnny | last post by:
How do I create a link on a Web page on my hard drive that will run an executable file on my hard drive? For example, let's say I create runpoodle.htm and save it to my hard drive, and let's...
4
by: Boris | last post by:
I observe the following strange behavior of my application. Let say we have managed application MyApp.exe which depend on a few assemblies MyAssembly1.dll, MyAssembly2.dll and MyAssembly3.dll. The...
3
by: Parveen | last post by:
I have an application that I need to deploy to users...the installer puts the program executable onto the user's local machine...but I would rather have this executable out on the network...this way...
1
by: Parveen | last post by:
When I try to deploy my windows application, the installer puts the program executable on the user's local machine...I would rather have the executable run from a folder on the network...this way it...
3
by: BobAchgill | last post by:
I am using FTP built in to my application to update the application and data from a server... What is the normal method folks use to over write the application while the program is active? What...
4
by: Jeremy S. | last post by:
We're in the process of writing a new Windows Forms app and the desktop support folks want for it to be run from a network share. I know it's possible (i.e., just have the framework on the clients...
2
by: Mike | last post by:
Can a vb program running as a serice not use network paths to do file/io? I can't seem to get my program to work with network paths and files. When I use local disk it works fine. When I run it...
2
by: NasirMunir | last post by:
I am trying to run an executable using shell. The executable look for certain files in the same directory and then run on those files. My problem: I have created a form which asks from the user to...
17
by: =?Utf-8?B?V2VuZHkgRWxpemFiZXRo?= | last post by:
Questions about creating an .net ‘executable’ 2005 that will not remained installed once a user enters some data into the application. I also want this applcation to not require any previous...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.