Page 1 of 1

Ping and open file.

Posted: 29 May 2019 05:31
by Bryan1993
Hi I’m new to cmd.

I’m trying to make a ping script to check an icecast server. If online, open a stream file, If offline, try for X amount of times. Then revert to a local playlist file.

This is what I need it to do:

Open WAITING.m3u in Winamp.
(background waiting track playing)

Ping icecast server for source 30s
(Waiting for source connection)

IF PING SUCCESS - open LIVE.m3u
IF PING TIMES OUT - open Playlist.m3u

I’m not sure what to use for this, Cmd, powershell, VBscript ???

Thanks