Home Here you can view your subscribed threads, work with private messages and edit your profile and preferences Registration is free! Frequently Asked Questions Search

HardwareDude.com Forum Index -> Microsoft Windows

Set the start directory for Windows Media Player


Post new topic   Reply to topic

  Author    Thread
sri
Moderator
Moderator


Joined: 28 Jan 2006
Posts: 381
Location: Hyderabad , India


 Reply with quote  
Set the start directory for Windows Media Player

Windows Media Player 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 every time you launch Windows Media Player, you may use this script. Copy the following 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 easy access. The "StartDir" is set to F:\Album. Modify the path accordingly in the script.


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

Post Thu Feb 23, 2006 10:21 pm 
 
  Display posts from previous:      



Post new topic   Reply to topic
Page 1 of 1



Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 



-Your Link Here-
Networking hardware and software solutions | web hosting directory | Web hosting and domain talk
Powered by phpBB: © 2008 HardwareDude.com | SiteMap |Privacy | Terms of Service
Powered By :