Thread: execute program on local comp

  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    28

    execute program on local comp

    How could I make a different computer on a LAN open a specific file? I have admin access to both.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Use a share?
    Use FTP?
    Use HTTP?
    All sorts of ways two machines could share a file - what did you have in mind?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jul 2006
    Posts
    28
    I dont mean to share the file, I mean to actually make the local computer open and run the program that is already on it, as if it had been opened when you were physically using the computer.

    Sorry I wasnt clear

  4. #4
    Registered User
    Join Date
    Nov 2002
    Posts
    319
    radmin
    remote anything
    these remote programs will do it , but if you want to make ur own go ahead
    winsock is the key

  5. #5
    Registered User
    Join Date
    Jul 2006
    Posts
    28
    Yes I wanted to make my own implement it into a program. Thats why I posted it on the programming board

    Does anyone know how I would go about doing this? I have no idea where to start. I dont want to do anything fancy, just something that will allow it to execute a file.

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Just read beej and implement any kind of client/server you care to.

    The server just waits for a connection, then receives a command telling it what to do. It then goes away and does it, and possibly sends back some success/fail.

    Then figure out the security implications of what you're doing.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  7. #7
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,058
    You may want to consider Named Pipes. The server side could be installed (and uninstalled if necessary) as a service on the remote computer allowing you to access the remote processes.

  8. #8
    Registered User
    Join Date
    Jul 2006
    Posts
    28
    I will try those out, thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Craps Program with Local Variables
    By tigrfire in forum C Programming
    Replies: 12
    Last Post: 11-09-2005, 09:01 AM
  2. Folding@Home Cboard team?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 398
    Last Post: 10-11-2005, 08:44 AM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. Execute from another program using C#
    By Grayson_Peddie in forum C# Programming
    Replies: 4
    Last Post: 05-04-2003, 12:03 PM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM