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

Remote start up

Does anyone have a C# example either in managed code or using WMI on how to start a process on a remote computer?

--
Thanks
-------------------
cz****@wsinc.com
Nov 15 '05 #1
2 3619

Hi Peter,

Thanks for posting in this group.
You can use "Process Class" in .Net to invoke a remote process.
But you should have the enough permission on remote machine.
There will be some sample code in Process class's document in MSDN, you can
go and check it.

If you wanted more complicated control on remote machine process, you can
use named pipe to communicate.
The article below use VC6.0 and Named Pipe to execute applications on
remote systems:
http://www.codeguru.com/network/xCmd.html

The sample below install an application on remote machine and use remoting
to communicate:
http://www.codeguru.com/cs_network/R...ssManager.html

Hope this helps,

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 15 '05 #2
Thanks for your help!

After thinking about it I think the best solution is to use Remoting since
the App on the remote computer is a GUI application.

""Jeffrey Tan[MSFT]"" <v-*****@online.microsoft.com> wrote in message
news:ZW**************@cpmsftngxa06.phx.gbl...

Hi Peter,

Thanks for posting in this group.
You can use "Process Class" in .Net to invoke a remote process.
But you should have the enough permission on remote machine.
There will be some sample code in Process class's document in MSDN, you can go and check it.

If you wanted more complicated control on remote machine process, you can
use named pipe to communicate.
The article below use VC6.0 and Named Pipe to execute applications on
remote systems:
http://www.codeguru.com/network/xCmd.html

The sample below install an application on remote machine and use remoting
to communicate:
http://www.codeguru.com/cs_network/R...ssManager.html

Hope this helps,

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 15 '05 #3

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

Similar topics

7
by: Yosh | last post by:
I am developing an application that will stop and start a process on a remote machine. What security rights are needed for my application to be able to do this? Hope this makes sense. Yosh
1
by: Ian McCarty | last post by:
Hi, Wondering if someone could help me out. I'm trying to setup remote debugging of my C# app. I've followed the instructions in MSDN and I've setup full remote debugging on the target (in fact...
3
by: John Grandy | last post by:
I need to start an executable (such as a batch file) on a remote machine. System.Diagnostics.Process.Start() will not start a new process on a remote machine ...
3
by: Steve Wark | last post by:
I have a Windows 2003 Web server on which I was debugging remotely with no problems. I then moved this server to a different domain and now remote debugging will not work, the error is; ...
2
by: Jeff | last post by:
I have an ASP.NET web page accessing a SQL database. I've used VS to build the app and stored it in the eNPTest02 directory of my localhost on my development machine. The database is on the web. ...
1
by: schaf | last post by:
Hi all! I'm still trying to start/stop a service on a remote computer. (I promiss that's the last new post because of this problem from my side) My situation: I've an application running under...
7
by: Ctal | last post by:
What is the best way to have my windows app run a .bat file on a remote server? The .bat will need to run as an admin on the remote machine. Additonally I need for my windows app to wait for the...
3
by: Billy Bob | last post by:
Hello In C# how can i start a remote process such as someapp.exe on a remote PC? I know the remote PC's name, but how do I start the app on that PC? Thanks ..
3
by: Rick | last post by:
We have a web site that was built as an ASP.Net Web Site, I am unable to remote debug, when build ing the web site there is not a dll or PDB file generated. I can debug on my local machine but...
3
by: Yves Gagnon | last post by:
Hi, I try to debug a WCF hosted in a windows services on a serveur that is on an other domaine then my developpement machine. I tried many things without succes. Here is what I tried: First I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

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.