Programfiles windows media player wmplayer exe prefetch 1

Lately, some users report that they cannot rip a CD because Windows Media Player crashes as soon as they try to rip. This simply means: Windows Media Players 12 closes without notification.

The solution appears to be very simple: Windows Media Player needs to be run with the Prefetch parameter. Here’s how:

  1. Open the Run-box by pressing WIN + R (Hold the Windows Key and then hit R)
  2. In the Run-box, paste this line and press OK
    “%ProgramFiles(x86)%\Windows Media Player\wmplayer.exe” /prefetch:1
  3. Try to rip the CD.

Did it work? Then change the Properties of the Windows Media Player shortcut. You are probably starting WMP with wrong parameters. Here’s how:

  1. Right-click the Windows Media Player Shortcut and choose Properties
  2. In the tab Shortcut, in the textbox Target, make sure /prefetch:1 is in the end. So the line should look like:
    “%ProgramFiles(x86)%\Windows Media Player\wmplayer.exe” /prefetch:1

I should have known it wouldn’t be long before an annoyance would popup with the new computer. This time it’s with the way Windows Media Player opens up; specifically the panel that shows up.

It used to be that WMP would open up in the Playing mode, where you can quickly see the current playlist and whatever media you’re playing. Well, Microsoft has decided it was far too convenient to open the bloody Player when you open Windows Media Player and decided to hide the Now Playing window and open the Library instead. The problem isn’t the player itself, but the shortcut that opens the program.

Normally clicking on the Windows Media Player link would bring this up…

WMP Libaray

Windows Media Player Library

 This is because the actual shortcut on the Taskbar and the Start Menu has the following in the Target field :

"%ProgramFiles(x86)%\Windows Media Player\wmplayer.exe" /Task prefetch:1

This needs to be changed to the following in the start menu…

"%ProgramFiles(x86)%\Windows Media Player\wmplayer.exe" /Task NowPlaying

Your shortcut link may vary depending on the Windows version, but the important part is that last /Task … part. Right click on the shortcut and change the last part.

Now the shortcut should open WMP as it should.

WMP Now Playing

Windows Media Player Now Playing window

  • Add bookmark

  • #1

The properties for my Windows Media Player under the Start->All Programs->Accessories->Entertainment is:<BR>CProgram Files\Windows Media Player\wmplayer.exe» /prefetch:1<BR><BR>While the one that is under Start->All Programs does not contain the prefetch switch…<BR><BR>What does the prefetch switch do exactly and what is the :1 at the end?<BR><BR>While we’re on the topic of WMP, mine is HORRENDOUSLY slow in the media library, going from subcategory to subcategory… anything i can do to improve that? (i have over 15,000 files in there, though, so i’m guessing that’s just WMP being poorly written to deal with a large database)…<BR><BR>this is under XP SP1 and WMP 9, btw

  • Add bookmark

  • #2

«prefetch» is basically a system service that is *supposed* to speed up access to selected applications by maintaining a db of your apps and PRE LOADING elements that allow them to load faster. Kind of confusing to explain, but that’s the general idea. Search google for perhaps a better explanation — I was just reading about it the other day. I have no idea what the :1 refers to, or why your program loads slower.

  • Add bookmark

  • #3

It most likely has to do with streaming media, and almost certainyl has nothing to do with windows system prefetch.

Finally got the problem sorted out. The WMP12 64-bit version is now the DEFAULT on my Windows 7 computer.

As for the permission errors in RegEdit, I noticed that those keys I wanted to edit were owned by SYSTEM. So I changed temporary the owner of those keys to USER (my name), altered the keys from %ProgramFiles(86)% to %ProgramFiles% and changed the owner back to SYSTEM. However, altering the paths to %ProgramFiles% in severel keys related to .AVI, .MOV, … video file extentions didn’t help me any further; the default WMP remained stuck at its 32-bit version.

BTW, prior to fussing with the registry I took a System Restore Point after having cleaned up the system first with CCleaner and Wise Registry Cleaner.

Then I stumbled upon the following link:

http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/making-windows-media-player-64-bit-default/bd4872b3-75e8-4d81-ae8a-df50798d5113

and that solved my problem completely.

After having followed the instructions in previous link, one still needs to make the WMP12 64-bit version the default version for all the video file extensions (.MOV, .MP4, .AVI, .3GP, ….). This can be accomplished the usual way; right-click the video file with a particular video file extension you want to open with the 64-bit version of WMP, then select Open With > Choose Default Program … > (a pane pops up with Recommended Programs and Other Programs) select the Browse button en navigate to C:\Program Files\Windows Media Player and select wmplayer.exe, which should be the 64-bit version. Make sure that in the pane (with Recommended Programs and Other Programs) the BOX |Always use the selected program to open this kind of file| is checked. Repeat this procedure for all (.MOV, .MP4, .AVI, .3GP, ….) video file extensions and all video files will open with the 64-bit version of WMP upon double clicking them.

In previous link there is the command unregmp2 /SwapTo:64 which needs to be invoked from the elevated command prompt (Run CMD as administrator). In my particular case unregmp2 /SwapTo:64 caused some activity on the system drive of mine, but no error message appeared and after having implemented the rest of the RegEdit procedure all went well and I changed the default player to the 64-bit version. So it ‘looked like’ unregmp2 /SwapTo:64 worked properly.

However, some authors on some internet fora noted that unregmp2 /SwapTo:64 does/may not (always) work in Windows 7 (beta?). For those who might be interested, one could skip running unregmp2 /SwapTo:64 in aforementioned link and go ahead with the RegEdit procudure and see if one can change the default player to the 64-bit version. If that doesn’t work, then one can still re-run the RegEdit procedure but preceded by the unregmp2 /SwapTo:64 command, as foreseen in the link. Reverting the whole procedure involves the command unregmp2 /SwapTo:32 .

Some links:

http://www.winvistatips.com/another-method-setting-wmp64-your-default-player-t168726.html

http://zachd.com/pss/pss.html#wmp12

Get Free Extra 15GB OneDrive Storage to Double Disk Space to 30GB

Regards,

j


Edited by DiracDeBroglie

В Windows XP ключ /prefetch:1 по умолчанию добавляется к адресу файла в свойствах иконки запуска Windows Media Player. Что такое prefetch? У слова prefetch перевод на русский язык звучит как «предварительная выборка».

Если лень читать — смотрите видео. Продолжительность: 7:46 мин.

Смыслом этой функции является ускорение загрузки программ и компьютера с Windows XP в целом. Она создает файлы в папке prefetch, содержащие информацию о путях к этим программам на жестком диске.

На сайтах в топе Яндекса по запросу «windows prefetch» можно найти некоторую дезинформацию об этой функции в Windows XP. В частности, на сайтах netler и izcity авторы поддерживают мифы о том, что для ускорения загрузки программ нужно добавлять в адресные строки их ярлыков ключ /prefetch: 1 , и что для ускорения загрузки системы нужно периодически удалять все файлы формата pf из папки prefetch.

В Windows XP папка Prefetch расположена обычно по адресу C:\windows\prefetch. В ней находятся файлы Prefetch с расширением *.pf — это списки файлов для загрузки, так называемые, хэш файлы. Их имена генерируются при хэшировании EXE файлов после загрузки. Каждый раз, когда Вы запускаете EXE файлы, происходит их хэширование и проверка, есть ли соответствующие им .pf файлы в папке Prefetch, и если да, то загружаются эти файлы. Если соответствующие файлы prefetch не существуют, система отслеживает, какие файлы задействует при запуске EXE программа, создает этот .pf файл и сохраняет в него пути к этим файлам.

  • Так что, во-первых, это не очень хорошая идея — очищать папку prefetch, как предлагают некоторые компьютерные сайты. Система просто создаст все эти файлы заново, в любом случае, если, конечно Вы не догадаетесь, как отключить prefetch.
  • Во-вторых, Windows автоматически удаляет файлы prefetch из этой папки, если их становится больше 128 штук. По этому, очистив эту папку, Вы не только не ускорите загрузку программ, но и временно ухудшите производительность Вашего компьютера.

Следующий момент…

Некоторые «специалисты» стали добавлять ключ /prefetch:1 при запуске программ. Многие заметили, что в автоматически созданных ярлыках для Win Media Player присутствует этот ключ, и его значение варьируется в зависимости от выполняемых программой функций. Например, ярлыку файла WMV, по которому Вы дважды щелкаете для просмотра видео, присваивается один параметр ключа prefetch, ярлыку автозапуска для воспроизведения или копирования музыки, которые появляются, когда Вы вставляете аудио компакт-диск — другие параметры.

Некоторые специалисты предположили, что ключ /prefetch: 1 включает процесс предварительной выборки. И они сразу стали добавлять его к каждому исполняемому файлу и рекомендовать делать это другим на разных сайтах и форумах. И таким образом сформировался этот миф. Другие специалисты написали на своих сайтах, что это полное фуфло, и выдвинули теорию о том, что этот ключ специфичен только для WM Player, увидев ссылки на файлы prefetch в подсистеме драйверов Windows.

Вобщем, ни те ни другие нифига не угадали.

Операционная система смотрит на параметр /prefetch:#, когда создает процесс и делает она это только с одной единственной целью. Она добавляет порядковый номер к хэшу. Зачем?

WMP имеет много разных функций. Библиотеки и код, которые он задействует при воспроизведении WMV, сильно отличаются от библиотек, участвующих в воспроизведении DVD, копировании компакт-диска, прослушивании Shoutcast-потока или любой из функций Windows Media Player. Если бы для WMP был только один хэш, то предварительная выборка корректно работала бы только для одной из его функций. При считывании неверных данных из файла prefetch не было бы фатальной ошибки — файл .pf просто загрузился бы в память и не был использован. Тем не менее, это было бы контрпродуктивно.

Параметр /prefetch:# с разными числами для каждой функции Windows Media Player позволяет для каждой функции создать свой отдельный хэш файл, и таким образом предварительная выборка выполняется правильно. Такие параметры prefetch характерны не только для WMP. То же самое делается для любого другого приложения.

Параметр /prefetch: принимается во внимание, когда создается первый поток в процессе, но не удаляется функцией CreateProcess из командной строки, поэтому любое приложение, которое не вкуривает неизвестные параметры командной строки, не будет работать с ним. Вот почему так много людей, заметили, что, например, Kazaa и многие другие программы выдавали ошибки или просто отказывались запускаться c windows prefetch. А WMPlayer конечно знает, что ключ может быть указан в параметрах, и просто молча игнорирует его существование.

Все что делает ключ /prefetch:# — изменяет хэш номер. Операционная система загружает программу с ним точно так же, как и без него, просто сохраняя данные о предварительной выборке в другой .pf файл.


Предыдущие записи:

  • Не удается загрузить файл setupdd.sys. Код ошибки: 4
  • System Event Log Full | сообщение при включении сервера
  • Файлы реестра Windows XP | Как достать информацию из реестра неисправной Windows XP

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Как установить windows xp на ноутбук леново
  • Как установить nfs underground 2 на windows 10
  • Как распаковать файл pkg на windows 10
  • Режим разработчика windows 10 хром
  • Установка сертификатов криптопро windows 10