469,927 Members | 1,589 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,927 developers. It's quick & easy.

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 1277
"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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Johnny | last post: by
1 post views Thread by Parveen | last post: by
3 posts views Thread by BobAchgill | last post: by
17 posts views Thread by =?Utf-8?B?V2VuZHkgRWxpemFiZXRo?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.