Launching VLC From A Script
Posted: 29 Sep 2005 07:12
G'day
I'm having a bit of a problem with VLC. I'm looking to stream video from a machine on our network. I'm planning on putting a login script for certain users so that VLC will be launched in client or server mode as appropriate and automatically connect, etc.
I'm using a .vbs (which is entirely evil) which looks something like this:
I'm using CHR(34) to insert double quotes around the path to the executable, but it doesn't seem to work for any of the arguments.
I've got a web cam that reboots the computer if no size is specified, and if that's not in quotes, it doesn't seem to launch.
Has anybody else had any experience with launching VLC from a .vbs script?
I'm having a bit of a problem with VLC. I'm looking to stream video from a machine on our network. I'm planning on putting a login script for certain users so that VLC will be launched in client or server mode as appropriate and automatically connect, etc.
I'm using a .vbs (which is entirely evil) which looks something like this:
Code: Select all
Set objShell = CreateObject("Wscript.Shell")
objShell.Run(CHR(34) & "C:\Program Files\VideoLAN\VLC\vlc.exe" & CHR(34) & " --intf dummy --dummy-quiet --video-on-top --width 120 --height 90 dshow:// :dshow-adev=none :no-dshow-config :no-dshow-tuner --sout #transcode{vcodec=mp4v,vb=384,scale=1}:duplicate{dst=display,dst=standard{access=udp,mux=ts,url=239.255.42.12:1234}}"), 1, TRUE
I've got a web cam that reboots the computer if no size is specified, and if that's not in quotes, it doesn't seem to launch.
Has anybody else had any experience with launching VLC from a .vbs script?