One Eye Ry,
The instructions from the wiki page don't talk about using regedit. They are the instructions on how to create a script file that will do all of the associations at once, as this is much easier than manually working in the registry for each and every item.
The wiki suggestion is like this:
1. Open a text editor like Notepad.
2. Copy this text, and paste into notepad:
[....]
3. Modify the strings C:\\Programs\\VideoLAN\\VLC\\vlc.exe to match to your VLC installation.
4. Save As "vlc.reg"(note the .reg extension).
5 Execute the vlc.reg file using a double-click(this adds it to your registry).
To expand on the detail of this:
notes:
Any string modification is done in the script file you create in notepad(which you could name "
associateVLCFileTypes.reg" or "
vlc.reg" or "
anything.reg"). The modifications are done from within notepad.
-you can right-click the .reg file and select [edit] if you need to do some editing later.
-after you "execute" the .reg script file it is not a relevant file any longer(the info has been exchanged to the registry), you
could delete it.
A "
.reg" extension has a file association with the regedit program, so when you are ready to implement the script you can double-click it, and the regedit program will "Merge" that script info into the system registry. You will then have file associations for VLC so you can double-click those file types to run them in VLC.
Editing the path info is important. If you do not do this properly then the file associations will not work. The syntax of the file path is important due to how the regedit program parses the .reg script. Alternatively, once the script is
Merge'ed into the registy, each path string could be manually changed using regedit, or you can just change the script file and then re-
Merge it again to overwrite the previous info.
For this script entry(creating a '
DefaultIcon' key under the '
HKEY_CLASSES_ROOT\VlcFile' key, and placing a default string with the value of "C:\Programs\VideoLAN\VLC\vlc.exe,0" under that key):
Code: Select all
[HKEY_CLASSES_ROOT\VlcFile\DefaultIcon]
@="C:\\Programs\\VideoLAN\\VLC\\vlc.exe,0"
..this needs to be the program path(harddrive location) to the vlc program file. The part that would need to be changed is noted like this:
[HKEY_CLASSES_ROOT\VlcFile\DefaultIcon]
@="C:\\Programs\\VideoLAN\\VLC\\vlc.exe,0"
..and the double-backslashes are required, so the real path:
C:\Programs\VideoLAN\VLC\
becomes:
Hence, my script would be exactly like this(based on where I installed VLC):
Code: Select all
[HKEY_CLASSES_ROOT\VlcFile\DefaultIcon]
@="C:\\VLC82\\vlc.exe,0"
If I wanted to manually go into the registry via regedit, and change this value I would open regedit and keep expanding the keys ->
HKEY_CLASSES_ROOT ->
VlcFile ->
DefaultIcon until I was able to see the
default(@ from the script) string value
C:\VLC82\vlc.exe,0 (C:\\VLC82\\vlc.exe,0 from the script) in the right-hand pane.
double-click '
default' and then edit the string entry to this:
(noting the single backslashes since this is not an interpreted script but the actual command in the registry)
..and then click Okay, then close regedit
The same posture should be observed for the other entry whether it is dealt with in a .reg script or from within regedit:
Code: Select all
[HKEY_CLASSES_ROOT\VlcFile\shell\Open]
[HKEY_CLASSES_ROOT\VlcFile\shell\Open\command]
@="C:\\Programs\\VideoLAN\\VLC\\vlc.exe \"%L\""
In the script the changed part will be:
[HKEY_CLASSES_ROOT\VlcFile\shell\Open]
[HKEY_CLASSES_ROOT\VlcFile\shell\Open\command]
@="C:\\VLC82\\vlc.exe \"%L\""
From within regedit:
this:
HKEY_CLASSES_ROOT ->
VlcFile ->
shell->
Open ->
default ->
C:\Programs\VideoLAN\VLC\vlc.exe "%L"
will be changed to this:
C:\VLC82\vlc.exe "%L"
Further notes:
-if you make the reg script and then "don't know where it is, or where it went", you can just search for it (
[Start] ->
[Search] ->
[Files and Folders] -> [vlc.reg] or [*.reg] to find all .reg files on the computer)
-if you don't know where VLC is, or has been installed, or "went to".. then search for it, don't get stumped.
-once the script is
Merge'ed into the registy, you can just change the script file and then re-
Merge it again to overwrite the previous info.