Play song as a service

Posted on 2006-05-04
Last Modified: 2010-04-18

Next to our server running Windows Server 2003 we have our telephone system that uses an external sound source for playing continuous messages (when a caller is waiting, for example). We want to have a MP3 file played repeatedely on the server. If I simply use Windows Media Player, it stops working whenever another session (such as remote desktop) is initiated.

Is there any way to have the MP3 file started and played as a service?

Thanks for any help.
Question by:mbertuol
    LVL 15

    Accepted Solution

    Why don't you buy a cheap CD player and pipe it out to the telephone system?  Many can play MP3s and most will loop forever. Plus you could always convert the MP3 to plain audio track if your CD player didn't play MP3s.

    If you had to go the custom service route, you obtain "srvany.exe" and "srvinstw.exe" from Microsoft (or google it, you'll find it).
    You'd use "srvinstw.exe" to make a new service that runs "srvany.exe".  Then you edit the srvany.exe service and tell it to run your MP3 player program/exe.
    Just look up how to create a custom service w/ srvany or srvinstw and you'll see plenty of examples.  It takes about 2 minutes to do.

    The problem is : Even if you make a service that runs your media player, where do you tell it to "play" and play your specific .mp3 ?
    If I tell my PC to always have the windows media player running, I'd still have to select my .mp3 and click play.

    I'd go with the external cheap CD player if I were you.  In fact, that's what I've done at companies I've worked for in the past.

    Author Comment

    ok Zagabar, thanks.
    LVL 15

    Expert Comment

    I've converted an MP3 to an .exe before actually.  I don't recall what software I used, but go to google and type "MP3 to EXE".  I'm sure I still have the program on my home PC....

    If you do convert the MP3 to an EXE then you wouldn't need a player.  You could use SRVANY.EXE and SRVINSTW.EXE to make your custom service.


    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    I have never ceased to be amazed how many problems you can encounter on a fresh install of a Windows operating system.  This is certainly case in point& Unable to complete ANY MSI installation.  This means Windows Updates are failing and I can't …
    The HP utility "HP Lights-Out Online Configuration Utility for Windows Server 2003/2008" could be of great use when it comes to remotely configure a HP servers ILO WITHOUT rebooting the server. We would only need to create and run scripts using thi…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now