Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Script or batch command for adding media libraries

21 Dec 2015   #1

Windows 7 Enterprise 64 & 32-bit, Windows 7 Ultimate 64-bit, Windows 7 Professional 64 & 32-bit
Script or batch command for adding media libraries

Hi all,

Let me start by saying I am running Media Center on Windows 10. It's not a fun workaround, but it works. After the latest update to Windows 10, I had to reinstall Media Center on my 5 PC's. I was curious to see if there was a batch script or VBS out there that I could modify to add libraries back into each computer without going through the usual process in the user interface. I have several libraries to add back into each system. Or, if someone knows where Media Center stores the information for it's Libraries to where I could right a script would be good. Again, I am running Windows 10 and I know I'm posting in a Windows 7 forum. Media Center is not officially supported on Win10. Thank you for any help.

My System SpecsSystem Spec
22 Dec 2015   #2

Windows 7 Enterprise 64 & 32-bit, Windows 7 Ultimate 64-bit, Windows 7 Professional 64 & 32-bit

Okay, So I found my answer digging around in the registry. The values for the libraries in WMC are stored in [HKCU\Software\Microsoft\Windows\CurrentVersion\Media Center\MediaFolders]. Each library has a different sub folder inside to match with the associated library (ie Image, Movie, Video). There, you can create tags that say "Folder0", "Folder1", and so on until you have all your folders. Make sure to update or create the "FolderCount" dword to match the number of folders you added to the registry.
My System SpecsSystem Spec

 Script or batch command for adding media libraries

Thread Tools

Similar help and support threads
Thread Forum
Help Need in batch script
Hi, I have my vendor's ftp url over SSL. it's like ftps:// and i have username and password. So please help me on writing batch script t o downlod the file from my vendor repository. If this is not possible in dos script, please suggest me opensource tool. But i would love the...
General Discussion
Help Needed in Batch Script
Hi, I have 1000 image url in my text file(sample.txt) and i want to download the images using the url. Can anyone please share with me the sample script which can do this in single shot. Also, is there any way to reduce the size of the image into 20/20 px with png extension. Thanks
General Discussion
How to run cmd.exe elevated in batch script
Hi All, I am writing a dos batch file for windows7 and it has many commands which need elevated access to run. For elevation I am using elevate.exe. I am doing like below - set Elevation=elevate -wait cmd.exe /c %Elevation% "cd /d %CD% && xcopy /E /Y ...." %Elevation% "cd /d %CD% &&...
General Discussion
batch script help
dear all any help to make batch script this the reason i want to make a batch file is to help me update the online games in 60 computers by overwriting or copying big files in one click from 1 source computer... instead of turning on all 60 computers and updating all online games, he'll just...
General Discussion
Help me with Batch script!
Hi, Can somebody assist me with a .bat file I am trying to create? This is what I have now: start /d "C:\Users\Me\Desktop\ghost" ghost.exe start /d "C:\Users\Me\Desktop" Poweroff.exe C:\Windows\System32\powercfg.exe /setactive e428f8a5-615e-488f-b7f7-1ed39450e522The first 2 lines start...

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 13:48.
Twitter Facebook Google+