MSFN Forum: Trying to automate remote video (psexec and pskill) - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Trying to automate remote video (psexec and pskill) Launching remote video, fullscreen from a command line Rate Topic: -----

#1 User is offline   davelalande 

  • Group: Members
  • Posts: 1
  • Joined: 20-January 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 20 January 2011 - 02:20 PM

I have a project where I need to launch a remote video on a machine driving a large television screen (fullscreen) in a public area and get it to loop.

I don't want to have to VNC into the computer to start the video because I want to build a batch system to change displays.

I have tried a ton of solutions and I am stuck on one that ALMOST works.

I am trying to use psexec to launch a VLC Media Player instance and then use pskill to shut it down, remotely. psexec doesn't play well with VLC Media Player directly so I am launching it from a .cmd. My simple start to the play.cmd looks like this.

cd c:\program files (x86)\videolan\vlc
vlc.exe test.wmv --fullscreen --loop --no-video-title-show
exit


The psexec command I carry out on my computer looks like this:

psexec \\myremotecomputer -i -s c:\play.cmd (I couldn't get the .cmd to launch from a folder structure with spaces so I moved it to the root to simplify the path and it works?)

Like I said, I use pskill to end the presentation. It all works fine thus far, but the pskill process stays in memory on the remote machine. So when I run another display and try to kill the new one, the pskill command reports that it's already running on the remote machine and cannot carry out it's duty.

This is my pskill syntax:

pskill \\myremotecomputer -t vlc.exe

Is there a fix, or can you suggest a more graceful way of accomplishing this routine?

Thanks so much for any help you can offer me,

Dave
Win 7 x64 Ultimate (local and remote machines)


#2 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,669
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 21 January 2011 - 08:37 AM

I'm not too sure about this question (subject matter) other than it doesn't belong in GD. I'll move it to Software Hangout, also it could also be networking, scripting or media related.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy