Running Windows 8? Want to use the SD-card slot with the Music or Movies-applications in Windows 8? Windows Media Player won’t include stuff in the library that’s stored on removable storage so here’s how to fool it!
Create a VHD on an SD-card (or USB, but that’ll stick out of your Slate (which I’m running)).
To create a VHD using diskpart follow these steps:
- Insert your SD-card or USB and note the driveletter it receives. Substitute “C:” below with that letter.
- Run CMD, start diskpart
- create vdisk file=”C:vdisksmediadisk.vhd” maximum=16000 (Creates a VHD on C: with maximum size 16000 MBs)
- attach vdisk (attaches it to your computer)
- create partition primary (creates a primary partition)
- assign letter=z (assigns the letter z to it)
- format fs=ntfs quick (quick formats the VHD with NTFS)
Start Notepad and copy and paste the script below, save this script into “mount.bat” or something similar.
echo select vdisk file="w:mediadisk.vhd" > %DiskPartScript%
echo attach vdisk >> %dpscript%
DiskPart /s %dpscript%
To make sure your computer mounts your VHD automatically we’ll add the script to the startup scripts in the Local Group Policy Editor:
- Start it by pressing Windows+R and typing gpedit.msc into the box.
- Browse to Computer Configuration/Windows Settings/Scripts (Startup/Shutdown)
- Doubleclick Startup
- Browse to where you saved your script
- Ok all the way out to the MMC
- If it worked your VHD shall now be mounted with a driveletter
To get some content into your applications you’ll need to create some folders in your VHD. I’ve named mine “Movies” and “Music”. Into these I’ve copied, you guessed it, movies and music.
These folders then need to be added into the libraries in Windows 8.
- Do this by starting Explorer, browse to your directories, right click and choose “Include in library”.
- Select the appropriate library.
- To speed things up you can after this go into Windows Media Player to verify or rescan that your files are added.
Once they are, they’ll be included in the Movies and Music apps in Windows 8 too.