can't make WMP 'start in' any directory

  • Thread starter Thread starter jameshanley39
  • Start date Start date
J

jameshanley39

I tried changing the 'start in' box for WMP so it'd go to a different
directory, but it keeps defaulting to c:\program files\windows media
player
 
WMP stores the last opened directory (only if you open a file and play it)
in a registry value named "OpenDir". But, if you click File - Open and
cancel the dialog once, the last open directory is reset to "C:\Program
Files\Windows Media Player"

To set the "OpenDir" to your preferred location everytime you launch WMP,
you may use this script:

-----------------Cut here-------------------------------------
Set WshShell = CreateObject("WScript.Shell")
StartDir = "F:\Album"
WshShell.RegWrite _
"HKCU\Software\Microsoft\MediaPlayer\Player\Settings\OpenDir",StartDir,"REG_SZ"
WshShell.Run "wmplayer", 1,True
Set WshShell = Nothing

-----------------Cut here--------------------------------------

Copy the above contents to Notepad, and save as wmp.vbs. Double-click
wmp.vbs to launch Windows Media Player. You may place the VBS in your Quick
Launch folder for each access.

FYI: The "StartDir" is set to "F:\Album". Modify the path accordingly.
 
Ramesh said:
WMP stores the last opened directory (only if you open a file and play it)
in a registry value named "OpenDir". But, if you click File - Open and
cancel the dialog once, the last open directory is reset to "C:\Program
Files\Windows Media Player"

thanks, that works. As soon as I opened/played a song from the folder I
wanted instead of clicking cancel, it set the directory for the next
time WMP opened. So, that works, I don't need to do the registry thing.

'interestingly' it seems that the 'start in' option on the WMP icon has
no effect.
 
Back
Top