473,408 Members | 1,822 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,408 software developers and data experts.

run .exe on networked computer

can this code be modified to run a .exe on a networked computer?

i have this for starting a local program:

System.Diagnostics.Process.Start("C:\program.exe")

i.e. does it work with ip address or mapped network drives?
Aug 25 '08 #1
7 1577

Yes it can ,,

However the apropriate settings must be applyed to run .Net executables from
the network standard it will not function but crash with a security
exception
so set the correct trust level with the local framework settings tools an it
wil function .

Note that a sysadmin can do this for all his computers with a group policy
regards

Michel
"jdrott1" <jo***********@gmail.comschreef in bericht
news:92**********************************@w7g2000h sa.googlegroups.com...
can this code be modified to run a .exe on a networked computer?

i have this for starting a local program:

System.Diagnostics.Process.Start("C:\program.exe")

i.e. does it work with ip address or mapped network drives?

Aug 26 '08 #2
On Aug 26, 1:13 am, jdrott1 <jonathandr...@gmail.comwrote:
can this code be modified to run a .exe on a networked computer?

i have this for starting a local program:

System.Diagnostics.Process.Start("C:\program.exe")

i.e. does it work with ip address or mapped network drives?
If you have a proper sharing and security configuration on your LAN,
you can try to invoke the program on a different computer on the same
local network using UNC path:

' Where SharedDocs is Shared Documents folder
System.Diagnostics.Process.Start("\\PC_NAME\Shared Docs\program.exe")

Hope this helps,

Onur Güzel

Aug 26 '08 #3
jdrott1 wrote:
can this code be modified to run a .exe on a networked computer?
Do you mean:

(a) "run a program /from/ a networked computer"
Yes you can, but the code executes on the /local/ machine's CPU and only
if you tell the .Net Framework to "trust" code loaded from that
particular machine, or you're running Framework 3.5 SP1, see [awfully
long] link:

http://blogs.msdn.com/vancem/archive...ork-share.aspx

(b) "run a program /on/ a networked computer"
No. Thankfully, you can't directly start a process on a remote
machine's CPU.

HTH,
Phill W.
Aug 26 '08 #4
However the apropriate settings must be applyed to run .Net executables from
the network standard it will not function but crash with a security
exception
so set the correct trust level with the local framework settings tools an it
wil function .
Much to my surprise this has been changed with .NET 3.5 SP1, we
finally can run .NET apps from the network without many headaches!

Prior to my posting this, Phill gave a link to a blog describing the
change, here's the link in smaller form:

http://snurl.com/3jwfn

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
Aug 26 '08 #5
On Aug 26, 8:37*am, rowe_newsgroups <rowe_em...@yahoo.comwrote:
However the apropriate settings must be applyed to run .Net executablesfrom
the network standard it will not function but crash with a security
exception
so set the correct trust level with the local framework settings tools an it
wil function .

Much to my surprise this has been changed with .NET 3.5 SP1, we
finally can run .NET apps from the network without many headaches!

Prior to my posting this, Phill gave a link to a blog describing the
change, here's the link in smaller form:

http://snurl.com/3jwfn

Thanks,

Seth Rowe [MVP]http://sethrowe.blogspot.com/
cool, thanks it did work. it's not really how i need it to work
though. it run the .exe on the local computer. i need the item to
start on the remote machine.

System.Diagnostics.Process.Start("Y:\program.exe")
Aug 26 '08 #6
jdrott1 wrote:
.... i need the item to
start on the remote machine.

System.Diagnostics.Process.Start("Y:\program.exe")
You could use psexec:
http://technet.microsoft.com/en-us/s.../bb897553.aspx

Andrew
Aug 27 '08 #7
Hmmm ,,, it took them a while but at least they have finally done it

This is a lost feature i am verry happy with getting back ( from VB6 )
and will sure be an extra argument to roll out SP1 a bit sooner in our
company

Thanks Phill and Seth for the provided link
"rowe_newsgroups" <ro********@yahoo.comschreef in bericht
news:01**********************************@v1g2000p ra.googlegroups.com...
>However the apropriate settings must be applyed to run .Net executables
from
the network standard it will not function but crash with a security
exception
so set the correct trust level with the local framework settings tools an
it
wil function .

Much to my surprise this has been changed with .NET 3.5 SP1, we
finally can run .NET apps from the network without many headaches!

Prior to my posting this, Phill gave a link to a blog describing the
change, here's the link in smaller form:

http://snurl.com/3jwfn

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/

Aug 27 '08 #8

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

Similar topics

3
by: ozarks | last post by:
I want to setup a database symbolic link within Windows XP to a network drive which has significanlty more space available and can't seem to get it working. Here is my setup.... - I am running...
2
by: caradhras | last post by:
I've been troubleshooting for a friend's charity. She wants their database accessible from both their PCs (I'll call them A & B), which are on a local network, both running A2K on Windows 98. I...
0
by: martin | last post by:
Hi, On my development machine I have vs.net installed and I am able to create a web application project No problem, this is located at http://localhost which I am guessing is the default. we...
2
by: Rishi Dhupar | last post by:
I am trying to upload a file to a networked device. All the users who have access to this page have access to the networked drive. Is there anyway of doing pretty much a copy file from local...
6
by: MattPKaiser | last post by:
I am trying to find a way to check if a computer on a network is "online" so that I can access a file on a share. In short I maintain a list of computers that have my service running (in the...
5
by: Lilith | last post by:
Would I be correct in assuming that the system file watcher is only valid for local drives and won't work for networked file system? -- Lilith
17
by: John Salerno | last post by:
Let me see if this question even makes sense...I'm reading Core Python Programming and I jumped ahead to the more specific topics like network programming. I plan to follow along with the example...
6
by: John O'Flaherty | last post by:
Hello. I have an ms acess database that I use to track my mp3 files. I have included code that lets me select and play files by invoking an mp3 player (Winamp). This is done by using visual basic...
3
by: iheartvba | last post by:
Hi, I have a MS Access Database which connects to a separate MS Access back end. The back end is located on a network drive on a peer-to-peer network, if the computer with the back end or front...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.