1. Welcome to LilyPad. Download the project, explore the forums, and create your own LilyPad network.


    If you use the software and enjoy it or have a question, or would like to contribute to the future of the software directly or through resources, please sign up and join our little community.

Need help with Program Psexec please help if you can!

Discussion in 'Support' started by ldyte1, Dec 7, 2013.

  1. ldyte1

    ldyte1 New Member

    Well first of all to start things of i dont know if this is aloud but i need some help with the program psexec. Now this has nothing to do with lily pad but if any of you could figure this out that would be very nice and helpfull. Basically i am trying to start the .bat file on my friends computer that start the servers so i can but them up while he is not there and i can put them down by going on the server and doing /stop . The problem is i am just strugling with what the command is. Here is what i am trying to use at the momment.

    psexec \\Ip Address -u ldyte1 -p PasswordHere -i cmd /c "C:\Users\User\Desktop\All Servers\LilyPad Server\Start.bat"

    And this one.

    psexec \\Ip Address -u ldyte1 -p PasswordHere -i "C:\Users\User\Desktop\All Servers\LilyPad Server\Start.bat"

    I dont know what is more correct or closer to what i need but if you can try and figure this out it would be great i am just dump at this program it just confuses the hell out of me.
    If you spot any errors please let me know.
    Btw there is a space between LilyPad And Server.

    From Luke.
  2. ldyte1

    ldyte1 New Member

    Any one have a clue....? i am still stuck
  3. Coelho

    Coelho Software Engineer Staff Member Administrator Maintainer

    Sorry, I don't use Windows (and thus have no experience with psexec) and can't help :( You might strike gold and someone else might know what's wrong though.
  4. The_Zip

    The_Zip Active Member Resource Contributor

    Did a little reading up on it for you, see if I could figure it out, the correct format is

    Code (text):
    psexec [\\computer[,computer2[,...] | @file]][-u user [-p psswd][-n s][-r servicename][-h][-l][-s|-e][-x][-i session]][-c [-f|-v]][-w directory][-d][-][-a n,n,...] cmd [arguments]
    So you would want to run

    psexec \\Ip Address -u ldyte1 -p PasswordHere -i "C:\Users\User\Desktop\All Servers\LilyPad Server\Start.bat

    And everything should be fine. Also, I don't know how close you and your friend are, but you might want to try the program TeamViewer, would be more simpler, and you could easily edit the files.

Share This Page