Using PSEXEC in batch file to open apps on remote machine
Posted: 12 Jul 2007 14:27
Hello,
i need to automate the backing up of skype and all it's messages on pc's.
my current script works fine as long as the application is shutdown.
i could just taskkill the prog but i still need to open it up again after the copy.
i have tried:
psexec \\machine "c:\program files\skype\phone\skype.exe" /shutdown
and also tried:
psexec \\machine -i "c:\program files\skype\phone\skype.exe" /shutdown
and:
CALL psexec \\machine "c:\program files\skype\phone\skype.exe" /shutdown
as well as:
psexec \\machine c:\windows\system32\cmd.exe "c:\program files\skype\phone\skype.exe" /shutdown
i could kill the task but would prefer to shut it down nicely.
also, the closest i could get to starting skype again, was the exe actually running on the machine, but not interacting with the desktop at all.
can anybody tell me what to put in my batch file?
Kind Regards,
Wesley
i need to automate the backing up of skype and all it's messages on pc's.
my current script works fine as long as the application is shutdown.
i could just taskkill the prog but i still need to open it up again after the copy.
i have tried:
psexec \\machine "c:\program files\skype\phone\skype.exe" /shutdown
and also tried:
psexec \\machine -i "c:\program files\skype\phone\skype.exe" /shutdown
and:
CALL psexec \\machine "c:\program files\skype\phone\skype.exe" /shutdown
as well as:
psexec \\machine c:\windows\system32\cmd.exe "c:\program files\skype\phone\skype.exe" /shutdown
i could kill the task but would prefer to shut it down nicely.
also, the closest i could get to starting skype again, was the exe actually running on the machine, but not interacting with the desktop at all.
can anybody tell me what to put in my batch file?
Kind Regards,
Wesley