Send command to another PC to start a program

Posted on 2008-11-05
Last Modified: 2013-12-17
I have 2 PC's that are both on the company network. While I'm running a program on PC1, I need to notify PC2 to run a program locally on that PC.  A possible solution is thru the 'Net Send' command but that has been disabled by IT.  Any suggestions on how to do this using C# 2005?
Question by:Barbless
    LVL 17

    Accepted Solution

    No experience of C# but i use Psexec for launching things on other machines.. !
    LVL 2

    Assisted Solution

    This can be done fairly easily using a Windows Service.  You can write a windows service for PC2 and register it exposing the startup method for that program.  Then from your first program all you have to do is a remote procedure call.

    Look here for the windows service info

    Look here for the info on doing a WCF remote call from PC1

    Author Closing Comment

    Thanks John and wildwood, both your advices work.
    I'm using John's suggestion because it uses something that already exists.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    734 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

    22 Experts available now in Live!

    Get 1:1 Help Now