PSexec help - open and close programs remotely (PalmDesktop) and overwrite data file(s)
Posted on 2009-02-12
Currently I have 2 PC's that my users walk up to with a Palm Pilot (a Tungsten I think), insert it in the USB cradle, and then use Hotsync to update: the calendar, contacts, and to-do list so it is the same as the 1st PC (the admin. assistant who enters in the data). The second 2 PC's only need to look at the data, not make any changes to it (aka they never update the calender, contacts, or to-do list themselves).
I wanted to write a small script to copy that data (calender, contacts, to-do list) over the network to a share on each PC. In one way, that's pretty easy, but I also need it to first have it close the PalmDestop Software on the remote PC's, then copy the new data (it can just overwrite the old data), and then re-start the PalmDesktop program on the remote PC's, all by the admin assistant clicking the link to the script on her desktop. I think there is a Sysinternals (Now MSoft) program called psexec that can be used to do this, but as my programming skills are worse than a script kiddie, I could really use some help on this.
Bonus points if you can have it first detect if the PalmDesktop software is running on each remote computer and only re-open the software if it was open to begin with! Also, not erroring out if one of the other computers is "turned off" would be nice...