Jump to content

Registering File Extensions Unattended


SiMoNsAyS

Recommended Posts

  • 5 weeks later...

Hello Men,

I am trying to change the default icon for "txtfile", at first it doesn´t change the icon, then i reinitiate and it take effect. There any way to change the icon without reinitiate?

Here is my CMD:

@echo off

cmdow @ /HID

REG ADD "HKLM\Software\Classes\txtfile\DefaultIcon" /VE /D "\"%PROGRAMFILES%\TextPad 4\MainIcon.ico\",0" /F

Exit

Edited by Major
Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...
WHAT ABOUT Foxit pdf extension? :no::no::blushing:

If this doesn't work for you, try:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.pdf]
@="FoxitReader.Document"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FoxitReader.Document]
"BrowseInPlace"="1"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf]
"Application"=-
"Progid"="FoxitReader.Document"

PS - I tried this having Adobe Reader installed first and it worked

Edited by JohnS
Link to comment
Share on other sites

  • 5 months later...
I need for VLC that asoc. all video file

Thank u

Here you have:

REG ADD "HKCR\.avi" /VE /D "VlcFile" /F

REG ADD "HKCR\.vob" /VE /D "VlcFile" /F

REG ADD "HKCR\.XXX" /VE /D "VlcFile" /F

REG ADD "HKCR\VlcFile\DefaultIcon" /VE /D "%SYSTEMDRIVE%\Programs\VLC\vlc.exe,0" /F

REG ADD "HKCR\VlcFile\shell\Open"

REG ADD "HKCR\VlcFile\shell\Open\command" /VE /D "\"%SYSTEMDRIVE%\Programs\VLC\vlc.exe\" \"%%L\"" /F

Just replace XXX for the extension you want to associate VLC to.

For a .reg file see here:

Videolan forum 1

and

Videolan forum 2

Link to comment
Share on other sites

  • 4 months later...

How can I get wordpad to open all NFO files?

How can I get VLC to open all video files?

How can I get WMP to open all audio files?

My try with NFO - it opens notepad, but then not the file! (batch file)

REG ADD "HKCR\.nfo" /VE /D "Notepad.nfo" /F
REG ADD "HKCR\notepad.nfo" /VE /D "Nfo Document" /F
REG ADD "HKCR\notepad.nfo\DefaultIcon" /VE /D "\"notepad.exe\",1" /F
REG ADD "HKCR\notepad.nfo\shell\open\command" /VE /D "\"notepad.exe"" /F
REG ADD "HKCR\notepad.nfo\shell\open\ddeexec" /VE /D "%1" /F
REG ADD "HKCR\notepad.nfo\shell\open\ddeexec\application" /VE /D "notepad" /F
REG ADD "HKCR\notepad.nfo\shell\open\ddeexec\topic" /VE /D "System" /F
REG ADD "HKCR\notepad.nfo\shell\print\command" /VE /D "\"notepad.exe" -s -p \"%%1\"" /F
REG ADD "HKCR\notepad.nfo\shell\printto\command" /VE /D "\"notepad.exe" -s -pt \"%%1\" \"%%2\" \"%%3\" \"%%4\"" /F

My try with VLC - THink this is fine, could some say if i have missed any (reg file)

[HKEY_CLASSES_ROOT\.ASF]
@="VlcFile"

[HKEY_CLASSES_ROOT\.AVI]
@="VlcFile"

[HKEY_CLASSES_ROOT\.DIVX]
@="VlcFile"

[HKEY_CLASSES_ROOT\.DV]
@="VlcFile"

[HKEY_CLASSES_ROOT\.m1v]
@="VlcFile"

[HKEY_CLASSES_ROOT\.m2v]
@="VlcFile"

[HKEY_CLASSES_ROOT\.mkv]
@="VlcFile"

[HKEY_CLASSES_ROOT\.mov]
@="VlcFile"

[HKEY_CLASSES_ROOT\.MPEG]
@="VlcFile"

[HKEY_CLASSES_ROOT\.MPEG1]
@="VlcFile"

[HKEY_CLASSES_ROOT\.MPEG2]
@="VlcFile"

[HKEY_CLASSES_ROOT\.MPEG4]
@="VlcFile"

[HKEY_CLASSES_ROOT\.MPG]
@="VlcFile"

[HKEY_CLASSES_ROOT\.PS]
@="VlcFile"

[HKEY_CLASSES_ROOT\.TS]
@="VlcFile"

[HKEY_CLASSES_ROOT\.OGM]
@="VlcFile"

[HKEY_CLASSES_ROOT\.VOB]
@="VlcFile"

[HKEY_CLASSES_ROOT\.WMV]
@="VlcFile"

[HKEY_CLASSES_ROOT\VlcFile\DefaultIcon]
@="C:\\Appz\\VLC\\vlc.exe,0"

[HKEY_CLASSES_ROOT\VlcFile\shell\Open]
[HKEY_CLASSES_ROOT\VlcFile\shell\Open\command]
@="C:\\Appz\\VLC\\vlc.exe,0" \"%L\""

Thanking you for your time!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...