exit the command prompt

Glaanieboy

OSNN Veteran Addict
Joined
6 Mar 2002
Messages
2,628
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?
 
Place the word "start " in front of the lines which start programs, such as Winamp, that should fix the problem.
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back