Hello all,
I am trying to write a batch file that will rebuild the Windows Media Player library automatically but I'm a little confused, perhaps someone can enlighten me
I wrote the following based on this:
How-To Rebuild Your Windows Media Player 12 Library
And as you can see, my batch file does (in theory) exactly what that tutorial suggests but it does not work! When I run it it it all seems to work, apart from this part:
The directory is not made and no files are copied or deleted, can someone explain what I'm doing wrong please?
Thanks,
Tom
I am trying to write a batch file that will rebuild the Windows Media Player library automatically but I'm a little confused, perhaps someone can enlighten me
I wrote the following based on this:
How-To Rebuild Your Windows Media Player 12 Library
Code:
@ECHO On
echo msgbox"Warning, this will close Windows Media Player",16,"Warning!" >> popup.vbs
WScript.exe popup.vbs
del popup.vbs
sc stop WMPNetworkSvc
TASKKILL /IM wmplayer.exe /F
TASKKILL /IM wmpnetwk.exe /F
set WMPDIR=%USERPROFILE%\AppData\Local\Microsoft\Media Player
mkdir %WMPDIR%\TomBackup
copy %WMPDIR%\CurrentDatabase*.wmdb %WMPDIR%\TomBackup
copy %WMPDIR%\LocalMLS*.wmdb %WMPDIR%\TomBackup
del /F /Q %WMPDIR%\CurrentDatabase*.wmdb
del /F /Q %WMPDIR%\LocalMLS*.wmdb
echo msgbox"Windows Media Player Library Rebuilt",64,"Process Completed!" >> popup2.vbs
WScript.exe popup2.vbs
del popup2.vbs
sc start WMPNetworkSvc
start %PROGRAMFILES%\Windows Media Player\wmplayer.exe
start %PROGRAMFILES%\Windows Media Player\wmpnetwk.exe
And as you can see, my batch file does (in theory) exactly what that tutorial suggests but it does not work! When I run it it it all seems to work, apart from this part:
Code:
mkdir %WMPDIR%\TomBackup
copy %WMPDIR%\CurrentDatabase*.wmdb %WMPDIR%\TomBackup
copy %WMPDIR%\LocalMLS*.wmdb %WMPDIR%\TomBackup
del /F /Q %WMPDIR%\CurrentDatabase*.wmdb
del /F /Q %WMPDIR%\LocalMLS*.wmdb
The directory is not made and no files are copied or deleted, can someone explain what I'm doing wrong please?
Thanks,
Tom
My Computer
System One
-
- Manufacturer/Model
- Build #1
- CPU
- Intel Core i7 3770K @4.4GHz
- Motherboard
- ASUS P8Z77-V PRO
- Memory
- Corsair Vengeance 2x4GB DDR3 1600MHz Low Profile (White)
- Graphics card(s)
- Gigabyte Radeon HD 7850 (2GB GDDR5)
- Sound Card
- Integrated on motherboard
- Monitor(s) Displays
- 23" LG LCD/LED IPS
- Screen Resolution
- 1920*1080
- Hard Drives
- Samsung EVO 128GB SSD Seagate Barracuda 2TB 7200rpm 2x500GB Seagate FreeAgent 5400rpm
- PSU
- Corsair TX650W V2 (80+ Bronze)
- Case
- NZXT Phantom 410
- Cooling
- Corsair H100 Water Cooler, 1x140mm and 1x120mm stock fans
- Mouse
- Microsoft Desktop 2000 Wireless Mouse
- Keyboard
- Microsoft Desktop 2000 Wireless Keyboard
- Internet Speed
- 95 Mb/s Download 70 Mb/s Upload