Jump to content

Registering File Extensions Unattended


SiMoNsAyS

Recommended Posts

ISO Filetypes with WINISO and Makes 2 RightMenu Entries to Mount the Image with D-Tools

REG ADD "HKLM\SOFTWARE\Classes\.iso" /VE /D "WinISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.bin" /VE /D "WinISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.cif" /VE /D "WinISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.vcd" /VE /D "WinISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.fcd" /VE /D "WinISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.img" /VE /D "WinISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.c2d" /VE /D "WinISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.dao" /VE /D "WinISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.tao" /VE /D "WinISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.ccd" /VE /D "WinISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.cue" /VE /D "WinISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.bwt" /VE /D "WinISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.cdi" /VE /D "WinISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.b5t" /VE /D "WinISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.mds" /VE /D "WinISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.nrg" /VE /D "WinISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.pdi" /VE /D "WinISO" /F
REG ADD "HKLM\SOFTWARE\Classes\WinISO\DefaultIcon" /VE /D "%SHORTPF%\WinISO\ISOFILE.ICO" /F
REG ADD "HKLM\SOFTWARE\Classes\WinISO\shell\open\command" /VE /D "%SHORTPF%\WinISO\WinISO.exe \"%%1\"" /F
REG ADD "HKLM\SOFTWARE\Classes\WinISO\shell\Montar Imagen\command" /VE /D "%SHORTPF%\D-Tools\daemon.exe -noicon -mount 0, \"%%1\"" /F
REG ADD "HKLM\SOFTWARE\Classes\WinISO\shell\Desmontar Imagen\command" /VE /D "%SHORTPF%\D-Tools\daemon.exe -noicon -unmount 0" /F

ISO Filetypes Mounted on D-Tools with DoubleClick and Menu Entries to Mount/Unmount

REG ADD "HKLM\SOFTWARE\Classes\.iso" /VE /D "D-Tools" /F
REG ADD "HKLM\SOFTWARE\Classes\.bin" /VE /D "D-Tools" /F
REG ADD "HKLM\SOFTWARE\Classes\.cif" /VE /D "D-Tools" /F
REG ADD "HKLM\SOFTWARE\Classes\.vcd" /VE /D "D-Tools" /F
REG ADD "HKLM\SOFTWARE\Classes\.fcd" /VE /D "D-Tools" /F
REG ADD "HKLM\SOFTWARE\Classes\.img" /VE /D "D-Tools" /F
REG ADD "HKLM\SOFTWARE\Classes\.c2d" /VE /D "D-Tools" /F
REG ADD "HKLM\SOFTWARE\Classes\.dao" /VE /D "D-Tools" /F
REG ADD "HKLM\SOFTWARE\Classes\.tao" /VE /D "D-Tools" /F
REG ADD "HKLM\SOFTWARE\Classes\.ccd" /VE /D "D-Tools" /F
REG ADD "HKLM\SOFTWARE\Classes\.cue" /VE /D "D-Tools" /F
REG ADD "HKLM\SOFTWARE\Classes\.bwt" /VE /D "D-Tools" /F
REG ADD "HKLM\SOFTWARE\Classes\.cdi" /VE /D "D-Tools" /F
REG ADD "HKLM\SOFTWARE\Classes\.b5t" /VE /D "D-Tools" /F
REG ADD "HKLM\SOFTWARE\Classes\.mds" /VE /D "D-Tools" /F
REG ADD "HKLM\SOFTWARE\Classes\.nrg" /VE /D "D-Tools" /F
REG ADD "HKLM\SOFTWARE\Classes\.pdi" /VE /D "D-Tools" /F
REG ADD "HKLM\SOFTWARE\Classes\D-Tools\DefaultIcon" /VE /D "%SHORTPF%\D-Tools\daemon.exe,0" /F
REG ADD "HKLM\SOFTWARE\Classes\D-Tools\shell\open\command" /VE /D %SHORTPF%\D-Tools\daemon.exe -noicon -mount 0, \"%%1\"" /F
REG ADD "HKLM\SOFTWARE\Classes\D-Tools\shell\Mount on First Device\command" /VE /D "%SHORTPF%\D-Tools\daemon.exe -noicon -mount 0, \"%%1\"" /F
REG ADD "HKLM\SOFTWARE\Classes\D-Tools\shell\Unmount First Device\command" /VE /D "%SHORTPF%\D-Tools\daemon.exe -noicon -unmount 0" /F
REG ADD "HKLM\SOFTWARE\Classes\D-Tools\shell\Mount on Second Device\command" /VE /D "%SHORTPF%\D-Tools\daemon.exe -noicon -mount 1, \"%%1\"" /F
REG ADD "HKLM\SOFTWARE\Classes\D-Tools\shell\Unmount Second Device\command" /VE /D "%SHORTPF%\D-Tools\daemon.exe -noicon -unmount 1" /F

You need 2 Daemon virtual devices, doubleclick will mount the image on first device, rightclick menu let you choice between mount on first device, unmount from first device, mount on second device and unmount from second device. Tested and working.

ISO Filetypes with UltraISO, D-Tools and Custom RightClick-Entries

REM UltraISO
REG ADD "HKLM\SOFTWARE\Classes\.b5t" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.b5i" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.mds" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.mdf" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.bwt" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.bwi" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.cue" /VE /D "binimage" /F
REG ADD "HKLM\SOFTWARE\Classes\.bin" /VE /D "binimage" /F
REG ADD "HKLM\SOFTWARE\Classes\.lcd" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.ccd" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.img" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.dvd" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.000" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.cdi" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.dao" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.tao" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.cif" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.p01" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.md1" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.xa" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.pdi" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.nrg" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.VaporCD" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.ncd" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.pxi" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.rif" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.rdf" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.gcd" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.gi" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.iso" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.ixa" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.vc4" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.fcd" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.vcd" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.vdi" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.ima" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\.c2d" /VE /D "UltraISO" /F
REG ADD "HKLM\SOFTWARE\Classes\binimage\DefaultIcon" /VE /D "%SHORTPF%\UltraISO\ISOFILE.ICO" /F
REG ADD "HKLM\SOFTWARE\Classes\binimage\shell\Convert to ISO\command" /VE /D "%SHORTPF%\UltraISO\UltraISO.exe -bin2iso -optimize \"%%1\"" /F
REG ADD "HKLM\SOFTWARE\Classes\binimage\shell\Mount Image\command" /VE /D "%SHORTPF%\D-Tools\daemon.exe -noicon -mount 0, \"%%1\"" /F
REG ADD "HKLM\SOFTWARE\Classes\binimage\shell\Unmount Image\command" /VE /D "%SHORTPF%\D-Tools\daemon.exe -noicon -unmount 0" /F
REG ADD "HKLM\SOFTWARE\Classes\UltraISO\DefaultIcon" /VE /D "%SHORTPF%\UltraISO\ISOFILE.ICO" /F
REG ADD "HKLM\SOFTWARE\Classes\UltraISO\shell\Mount Image\command" /VE /D "%SHORTPF%\D-Tools\daemon.exe -noicon -mount 0, \"%%1\"" /F
REG ADD "HKLM\SOFTWARE\Classes\UltraISO\shell\Unmount Imagen\command" /VE /D "%SHORTPF%\D-Tools\daemon.exe -noicon -unmount 0" /F
REG ADD "HKLM\SOFTWARE\Classes\Directory\shell\Create ISO\command" /VE /D "%SHORTPF%\UltraISO\UltraISO.exe -imax -l -joliet -optimize -d \"%%1\" -volu NEW -out \"%%1\IMAGE.ISO""

Let me explain it a a little. This command will associate all UltraISO filetypes, and will use a custom "ISOFILE.ICO" located on UltraISO dir. Also it will create rightmenu entries for "Convert to ISO" any BIN/CUE file and "Create ISO" for every directory, image will be saved as IMAGE.ISO on the same dir, you can customize label and filename (hope you can enjoy it, this has took me a LOT of time ;)). Finally there are 2 additions for Daemon-Tools, "Mount Image" and "Unmount Image", both using the first D-Tools device.

Edited by SiMoNsAyS
Link to comment
Share on other sites


NFO and DIZ Files on MS-DOS

REG ADD "HKLM\SOFTWARE\Classes\.nfo" /VE /D "ASCII" /F
REG ADD "HKLM\SOFTWARE\Classes\.diz" /VE /D "ASCII" /F
REG ADD "HKLM\SOFTWARE\Classes\ASCII\DefaultIcon" /VE /D "%WINDIR%\system32\shell32.dll,70" /F
REG ADD "HKLM\SOFTWARE\Classes\ASCII\shell\open\command" /VE /D "EDIT.COM /R /H \"%%L\"" /F
REG ADD "HKLM\SOFTWARE\Classes\ASCII\shell\edit\command" /VE /D "EDIT.COM /H \"%%L\"" /F

Most people use external applications to open NFO and DIZ files, now you don't need them.

Interesting method for viewing NFO/DIZ files - I use a similar method:

Add a "Command Prompt" option to the right-click menu:

CMD.EXE /K TYPE "%l"

Or, if you don't want it to display all at once

CMD.EXE /K TYPE "%l" | MORE

Then it doesn't have to open with EDIT.COM and it's easier to scroll...

Link to comment
Share on other sites

@pinout, based on yours i writed this. basically the same but the command window will pause so you can read the entire text if you like and after any keypress will exit :)

NFO and DIZ Files on the Command Prompt

REG ADD "HKLM\SOFTWARE\Classes\.nfo" /VE /D "ASCII" /F
REG ADD "HKLM\SOFTWARE\Classes\.diz" /VE /D "ASCII" /F
REG ADD "HKLM\SOFTWARE\Classes\ASCII\DefaultIcon" /VE /D "%WINDIR%\system32\shell32.dll,70" /F
REG ADD "HKLM\SOFTWARE\Classes\ASCII\shell\open\command" /VE /D "CMD.EXE /K TYPE \"%%L\" &&ECHO. &&PAUSE &&EXIT" /F

or...

REG ADD "HKLM\SOFTWARE\Classes\ASCII\shell\open\command" /VE /D "CMD.EXE /K TYPE \"%%L\" &&COLOR 1B &&ECHO. &&PAUSE &&EXIT" /F

or...

REG ADD "HKLM\SOFTWARE\Classes\ASCII\shell\open\command" /VE /D "CMD.EXE /K TYPE \"%%L\" | MORE &&ECHO. &&PAUSE &&EXIT" /F

see "HELP CMD.EXE" or "HELP TYPE" for more info about how to changhe command prompt colors, prompt cursor etc... (there is something i've been working on related)...

Edited by SiMoNsAyS
Link to comment
Share on other sites

@SiMoNsAyS

The shortened variable you use here, can be called a perfect way to waste time (on typing and replacing text in notepad) ;) (no offense meant).

Either just use %ProgramFiles% itself in the batches, or shorten it to something *REALLY* short like %PF% - the usage of such a big variable (like %SHORTPF%) is unnecessary.

Link to comment
Share on other sites

@prathapml well that's not really accurate, no offense :). i don't use the variable to don't write the long "%PROGRAMFILES%" i use it because some of the reg entries need to be 8 digits.

this way "Program Files" becomes "Progra~1". but yes you can set "%SHORTPF%" to "%PF%" or whatever you like ;)

Link to comment
Share on other sites

I don't understand why would a registry entry need to be only 8 characters?

because i started based on a code developed by @jdoe for firefox and to ensure shortcuts to .exe and .ico files would work under batches on DOS, paths were shorted like "%SHORTPF%\MOZILL~1\FIREFOX.EXE".

i know it doesn't make so much sense when trying to locate for example "%SHORTPF%\Windows Media Player\wmplayer.exe" but that's the way i started the batch and bc of that i still preserve that variable :P

anyway if you don't like it you can search/replace %SHORTPF% with %PROGRAMFILES%, %PF% or %IMAGEEK% lol

edit: i suggest the mod that changed the title of the topic to "Registering file Extensions Unattended" next time use propper capitalizations :P

Edited by SiMoNsAyS
Link to comment
Share on other sites

@prathapml

I don't really understand what's the big deal about a variable name (%SHORTPF%). It's JUST a variable name after all.

I provide many batches samples in MSFN forum and seeing SiMoNsAyS using some of them is proving me that they are not useless.

Go ahead Simon, use it all if you need them.

I think that it was not the best post of prathapml. :P

Link to comment
Share on other sites

Its not a big deal.

As I said above, the intent of the post was a suggestion - that using such a long variable somehow seems unnecessary - I like to keep things as "tight" as possible.

What you do finally end up doing depends on personal preferences.

Link to comment
Share on other sites

Zoom Player WMV Pro with all shown associations.

I use the zip version, so I'm only guessing the default install location, if it's not correct do a search & replace on it first.

Attached due to size!

<Edit>

File reloaded due to error, for anyone who has the previous one, the end of the command strings said \"%L\" instead of \"%%L\"

</Edit>

ZPassoc.txt

Edited by Yzöwl
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...