Ping and open file.

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Bryan1993
Posts: 1
Joined: 29 May 2019 05:24

Ping and open file.

#1 Post by Bryan1993 » 29 May 2019 05:31

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

Post Reply