Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Windows Media Player - general question  (Read 3698 times)

0 Members and 1 Guest are viewing this topic.

WCFields

    Topic Starter


    Newbie

    • Experience: Experienced
    • OS: Windows 7
    Windows Media Player - general question
    « on: November 03, 2012, 12:27:40 PM »
    In Media Player, is there a way to determine which Playlist(s), if any, a particular track from my library appears?

    Sidewinder



      Guru

      Thanked: 139
    • Experience: Familiar
    • OS: Windows 10
    Re: Windows Media Player - general question
    « Reply #1 on: November 04, 2012, 06:02:22 AM »
    Welcome to the forum. I suggest the easiest way would be to use a VBScript. Found this in the snippet closet.

    Code: [Select]
    Set objPlayer = CreateObject("WMPlayer.OCX" )
    Set objPlaylists = objPlayer.PlaylistCollection
    Set colPlaylists = objPlaylists.getAll()

    For i = 0 to colPlaylists.Count - 1
      Set objPlaylist = colPlaylists.Item(i)
      For j = 0 to objPlaylist.Count - 1
      Set objSong = objPlaylist.Item(j)
      WScript.Echo objPlaylist.name & "       " & objSong.Name
      Next
    Next

     8)
    The true sign of intelligence is not knowledge but imagination.

    -- Albert Einstein