executing a program on another computer

Discussion in 'Programmer's Corner' started by magnet18, Jan 24, 2012.

  1. magnet18

    Thread Starter Senior Member

    Dec 22, 2010
    OK, me and a friend are working on a project at school.
    You can access the C drive of any computer of our schools network with the network location "stuff I dont remember/COMPUTER NAME/$"
    We have written the code to scan and see which computers are online and accessible (I wrote a simple batch with 4 user inputs and a couple loops, showed it to him, inspired him, he went all out in C# sunday afternoon)
    Anyway, we can put a file on the C drives, but we need a way to execute the file on the target computer, not the one that we're doing this from.
    This probably sounds kinda sketch, but dont worry, it's just a VBS script to eject the disc drive as a physical indicator that the goal was accomplished.

    (funny story, we kinda crashed one computer and massivley lagged another by accidentially sending infinite pings before scripting a close button :p
    his dad was not happy when he got lagged out of facebook poker :rolleyes:)
  2. Markd77

    Senior Member

    Sep 7, 2009
    You shouldn't be able to instantly execute a file on a remote PC without installing anything (but it is Windows so there might be a security hole).
    You might be able to put a program in the startup folder so it runs on next boot, then you can do pretty much what you want, you could have the script look for a filename in a loop, then eject the disk, then it will eject every time you copy that file to the remote PC.
    magnet18 likes this.
  3. MrChips


    Oct 2, 2009
    This is also called a computer virus.
  4. nerdegutta


    Dec 15, 2009
    Perhaps you could telnet into the other computer....?
  5. thatoneguy


    Feb 19, 2009
    Install VNC (free) on both systems, and you can run both from one desktop.
  6. magnet18

    Thread Starter Senior Member

    Dec 22, 2010
    is it a virus if it dosen't spread itself?
    and besides, it dosen't actually DO anything
    it's just a challenge

    Thanks, I'll look into it :)

    nah, can't install anything on the other computer :p

    I'm not sure if we can access the startup folder, but the autoexec.bat might work...
  7. GetDeviceInfo

    AAC Fanatic!

    Jun 7, 2009
    the word 'expulsion' comes to mind. Is your schools administrator aware of your 'project'?