exit the command prompt

Glaanieboy

OSNN Veteran Addict
#1
I've got an annoying problem with a batch script. It must first connect to my ISP, and then I starts up Winamp, which automatically connects to Wolf FM (an online radio station). I have set it up like this:

---------------------------------------------------------------------
@echo off
title Connecting Wanadoo and Wolf FM
rasdial "(name of ISP with quotes)" username password
if errorlevel 1 goto uhoh
if not errorlevel 1 goto WolfFM

:uhoh
echo There is an error with the ISP,
echo try again later.
echo Now press any key continue working with Windows
pause >nul
exit

:WolfFM
echo Connected!
echo now connecting Wolf FM (Winamp)
C:\progra~1\winamp\winamp.exe D:\music\wolffm.m3u

echo Connected succesfully to Wolf FM! Enjoy!
exit
---------------------------------------------------------------------

With that final exit is a problem. It only exits when I exit Winamp.
Can I set it up so that the script automatically exits, even when Winamp is still running?

ps. I have heard of Windows Scripting Host. Can I use this? And how?
 

Members online

No members online now.

Latest posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,971
Messages
673,299
Members
89,016
Latest member
Poseeut