当前位置: 首页 >> 榆树网-系统,榆树网-网络 >> 文章正文

Windows下循环启动VLC的脚本

为配合《Windows下VLC状态检查》工作,VLC需要循环启动,以下是启动脚本:

@echo off

title Start_CCTV-HD

netstat -an|find /c /i "0.0.0.0:9008" > null

if "%errorlevel%" == "1" goto startvlc

goto exit

:startvlc

cd %appdata%\vlc
del crashdump

::vlc.exe --meta-title "LN-City" --repeat dvb-t://frequency=762000000 :dvb-bandwidth=-1 :sout=#duplicate{dst=std{access=http,mux=ts,dst=:9008}}
vlc.exe --meta-title "CCTV-HD" --repeat dvb-t://frequency=794000000 :dvb-bandwidth=-1 :sout=#duplicate{dst=std{access=http,mux=ts,dst=:9008}}

date /T
time /T

call :sleep 10

goto startvlc

:sleep
:: sleep for x number of seconds
ping -n %1 127.0.0.1 > NUL 2>&1
goto :EOF

:exit

相关文章

发表评论