Click here to Skip to main content
13,557,543 members
Click here to Skip to main content
Add your own
alternative version


26 bookmarked
Posted 22 Aug 2006
Licenced CPOL

Create a Windows Media Player List

, 22 Aug 2006
Rate this:
Please Sign up or sign in to vote.
Create Playlist regardless of Windows recognised format using strings, arrays and files
Sample Image - CreateWMList.jpg


This is a very simple application created using various techniques of string manipulations and file manipulations. It is my first project created using C# and .NET as part of learning these new technologies. For beginners, this project does give you an idea of using File Input/Output functions, recursive functions, string manipulations.


This project was created out of my frustration with creating a playlist (*.wpl) in Windows Media Player. It is a time consuming thing to create a playlist manually. I thought that it will give me an opportunity to familiarize myself with arrays, strings and file functions.

Windows Media Player (WMP) adds to its playlist only WMP known file types. For example, if you want to create a playlist from a directory which has files in various formats such as RealPlayer format (obviously, not Microsoft format), WMP ignores those files and adds only WMP recognized formats to the playlist. It is a bit of a pain when I am using WMP to play RealPlayer format files as well.

Using the Code

I have included two source files that have different techniques of using string functions and file I/O.

  • frmCreateWMList_StrArray.cs -> Uses the fixed array of strings formats
  • frmCreateWMList.cs -> Reads file formats from a file, string parsing


  • Enter the directory where your files are located.
  • Select the formats to be included in your playlist.
  • Enter filename to Save playlist As...
  • Press Create to generate the file.

Points of Interest

It is a good start for beginners who are just starting with C# and .NET and want to be familiar with string search, add, join string lists, recursive functions and file I/O.

This can be further developed to support various metadata tags supplied by Windows Media Player SDK.


If you make any bug fixes / changes / improvements to this project, please drop me a line about the changes. However, it is not mandatory to do so.

Why are you waiting?! Let's groove...


  • 22nd August, 2006: Initial post


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Web Developer
New Zealand New Zealand
Suneel has a bachelors degree with honours from University of Technology(RMIT), Melbourne, Australia. He has an over eight years of experience in both development using C/C++, Delphi and Visual Basic for Retail, Banking and Hospitality markets. He currently lives in most beautiful place in New Zealand.

You may also be interested in...


Comments and Discussions

QuestionGood Pin
jayant626025-Apr-13 16:37
memberjayant626025-Apr-13 16:37 
Questionplaylist does not open Pin
Member 948757825-Feb-13 15:50
memberMember 948757825-Feb-13 15:50 
Questionplaylist craetion in windows media player Pin
Ajay108910-Jul-12 23:38
memberAjay108910-Jul-12 23:38 
Questiondoesn't work anymore Pin
Mickster042-Feb-09 13:52
memberMickster042-Feb-09 13:52 
AnswerRe: doesn't work anymore Pin
suneelp14-Apr-09 11:57
membersuneelp14-Apr-09 11:57 
GeneralRe: doesn't work anymore Pin
suneelp21-Apr-09 21:48
membersuneelp21-Apr-09 21:48 
GeneralException Pin
DungVinh13-Aug-08 23:29
memberDungVinh13-Aug-08 23:29 
GeneralRe: Exception Pin
suneelp21-Apr-09 21:43
membersuneelp21-Apr-09 21:43 
GeneralRe: Exception Pin
suneelp21-Apr-09 21:46
membersuneelp21-Apr-09 21:46 
GeneralRe: Exception Pin
spiritdead14-Aug-12 13:38
memberspiritdead14-Aug-12 13:38 
Questioncontinuative idea Pin
hddfan14-Apr-08 0:39
memberhddfan14-Apr-08 0:39 
Generalvery good Pin
piyush1234-Aug-07 0:29
memberpiyush1234-Aug-07 0:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.180515.1 | Last Updated 22 Aug 2006
Article Copyright 2006 by suneelp
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid