Old 7th June 2008, 01:52   #1
bigbob85
Junior Member
 
Join Date: Jun 2008
Posts: 5
How To : Hidden SHOUTcast Console

I hope this is helpful to people (and in the most appropriate forum), but I have found how to run the console hidden in windows.

When I searched I found how to do it in linux, and I eventualy found in some post how to do it. So I thought I'd post this, hopefuly its easier for windows users to find.


In your SHOUTcast install directory (C:\Program Files\SHOUTcast\ is the default) create a SHOUTcast.js file (you can create a .txt file and then just rename it.. might even be able to run the .txt..).

Edit the file in your favourite text editor (NotePad++ for me ) and paste this following code.
code:
var WindowStyle_Hidden = 0;
var objShell = WScript.CreateObject("WScript.Shell");
var result = objShell.Run("cmd.exe /c \"C:\\Program Files\\SHOUTcast\\sc_serv.exe\"", WindowStyle_Hidden);



Replacing that directory in there, with a directory to your file. You must make sure you put an extra \ in for directorys, and around the inside ". This just escapes the characters.


On your desktop (or statup folder?) create a short-cut.
When it says "Type the location of the item:", write
code:
C:\Windows\System32\wscript.exe "C:\Program Files\SHOUTcast\SHOUTcast.js"


Again, changing directorys where needed.

Now when you run this shortcut (or turn on your computer?) your SHOUTcast server will automaticly start. To close it, or check that it is still running, you'll have to do so via task manager, looking for the process sv_serv.exe


So, or
bigbob85 is offline   Reply With Quote
Old 7th June 2008, 18:07   #2
Greg_E
Major Dude
 
Join Date: Nov 2006
Location: USA
Posts: 1,687
I run mine as a sevice, so there is no console present ever. Works just fine for me as that is the only thing that machine ever does.

Your mileage may vary!
Greg_E is offline   Reply With Quote
Old 8th June 2008, 14:31   #3
Wavestreaming
Major Dude
 
Wavestreaming's Avatar
 
Join Date: Apr 2004
Location: United Kingdom
Posts: 1,563
Send a message via AIM to Wavestreaming Send a message via Yahoo to Wavestreaming
Thanks for the tutorial bigbob, I'm sure many people may find it useful
Wavestreaming is offline   Reply With Quote
Old 27th August 2015, 10:56   #4
Creeperman007
Junior Member
 
Join Date: Aug 2015
Posts: 1
Stopping

If you want to stop it you can create short-cut with location:
code:
taskkill /F /IM sc_serv.exe
Creeperman007 is offline   Reply With Quote
Old 3rd September 2015, 10:42   #5
Unknown Artist
Junior Member
 
Unknown Artist's Avatar
 
Join Date: Aug 2014
Posts: 27
A little odd to execute a javascript in order to kickstart a windows process. I'd be curious if a similar approach would be possible on linux, eg remote server doesn't start, grabs index.html and then kick starts shoutcast.

What I do with SHOUTcast otherwise on TuneIn
Unknown Artist is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Discussions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump