Situation: My smartphone needs .wma or .midi files for ringtones.

Problem: I have an .mp3 music file and i need it to set it as a ringtone on my smartphone.

Solution: simple!!! Isnt'it? Download a tool from internet to convert .mp3 to .wmv, or download Windows Media Encoder and run its tool to convert. Nah but the problem doesnt ends here. I need something which can run automated tasks. I want to give a directory name comntaining .mp3 files as input and expect another directory having encode .wma files [8-|] Giving one file each at a time is not my thing. Plus i need to control the properties of the file and i do not wish to choose from the hard coded configuration settings.

Yeah i seem to be unreasonable but yeah its the need of the day. [:)]

Another solution:

this does the magic

cmd> cscript.exe wmcmd.vbs -input "mp3Dir" -output "wmvDir" -profile a64

input - input file-path or directory-path

-output - shall i?

-profile - a profile for encoding. A profile is a collection of command-line options tailored to the type of content being encoded. a64 is for an audio file encoded at 64 kbps.

What is cscript.exe?

CScript.exe is the version of Windows Script Host that enables you to run scripts from the command prompt.

I want to try cscript.exe, but How do i get cscript.exe?

It comes with Windows XP, 2000 Professional.

What is wmcmd.vbs?

Windows Media Encoding Script is a VB script wrapper to help use Windows Media Encoder functions.

How do i get wmcmd.vbs?

It is installed in the same folder as Windows Media Encoder. By default, the folder is in the following location "c:\Program files\Windows Media Components\Encoder"

Use WMEncUtil.chm (helpfile) in the installation directory to knomor (know more) on command line options.

Can i use it in my application?

yes, you can if it is intended to run on Windows Platform. Here is a guide to program a sample application in C#