?
Solved

Play song as a service

Posted on 2006-05-04
3
Medium Priority
?
233 Views
Last Modified: 2010-04-18
Hello,

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.
0
Comment
Question by:mbertuol
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
ZabagaR earned 750 total points
ID: 16615427
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.
0
 

Author Comment

by:mbertuol
ID: 16615644
ok Zagabar, thanks.
0
 
LVL 15

Expert Comment

by:ZabagaR
ID: 16615803
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.

-z-
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Integration Management Part 2
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

839 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