PDA

View Full Version : "Open with" command



dbusguy
07-07-2005, 06:13 PM
I have this code (which does work) that shows in the right click menu for "open with notepad".

Is there someone who is more familiar with the registry that can rework it to "Open with Irfanview"?

Irfanview is located in "C:\Program Files\IrfanView\i_view32.exe"



Run REGEDIT.

Go to HKEY_CLASSES_ROOT\ * \shell ( * is the first key (folder) listed).
If the 'shell' key doesn't exist, right-click on the * key and choose New > Key, and name it 'shell' (without the quotes).
Right-click on 'shell' and choose New > Key.
Name it 'Open with Notepad' (without the quotes).
Right-click on the new 'Open with Notepad' key and choose New > Key.
Name this key 'command' (without the quotes).
In the right pane double click on default, and enter this Value Data: notepad.exe %1
Click OK and close Regedit.


.

mander
07-07-2005, 06:20 PM
I am just guessing but would this not work?

Run REGEDIT.

Go to HKEY_CLASSES_ROOT\ * \shell ( * is the first key (folder) listed).
If the 'shell' key doesn't exist, right-click on the * key and choose New > Key, and name it 'shell' (without the quotes).
Right-click on 'shell' and choose New > Key.
Name it 'Open with Irfanview' (without the quotes).
Right-click on the new 'Open with Irfanview' key and choose New > Key.
Name this key 'command' (without the quotes).
In the right pane double click on default, and enter this Value Data: i_view32.exe %1
Click OK and close Regedit.


Logically it makes sense just to change a few names and the location of the file. Anyone else agree? :vxd:

dbusguy
07-07-2005, 06:24 PM
I thought of that, but was hesitant seeing that notepad was in the windows directory.
Thinking that I needed to direct it to "C:\Program Files\IrfanView\i_view32.exe"

This is why I asked.
Don't want to monkey around in there.
Need a for sure code.

Bluvertigo
07-07-2005, 06:26 PM
ONE_HUMAN's Advanced Tips & Tricks
http://www.geocities.com/one_human/advanced.html

IrfanView as an example.
http://www.geocities.com/one_human/advanced.html#anyprogram

dbusguy
07-07-2005, 06:31 PM
ONE_HUMAN's Advanced Tips & Tricks
http://www.geocities.com/one_human/advanced.html

IrfanView as an example.
http://www.geocities.com/one_human/advanced.html#anyprogram

Excellent, thank-you...item number 3 just happens to be irfanview :D

dbusguy
07-07-2005, 06:39 PM
That worked.
that's the confirmation I needed.
Did need the exact location.


Run REGEDIT.

Go to HKEY_CLASSES_ROOT\ * \shell ( * is the first key (folder) listed).

If the 'shell' key doesn't exist, right-click on the * key and choose New > Key,

and name it 'shell' (without the quotes).

Right-click on 'shell' and choose New > Key.

Name it 'Open with IrfanView' (For the purpose of my example only. You use the

program name that you are adding).

Right-click on the new 'Open with IrfanView' key and choose New > Key.

Name this key 'command' (without the quotes).

In the right pane double click on default, and enter the path to the program as

the Value Data. (i.e. C:\Program Files\IrfanView\i_view32.exe %1).

Click OK and close Regedit.

So this will work for any program.....really cool :D



.

WhitPhil
07-08-2005, 08:47 AM
The other easy way to do this is to drop a shortcut to the program in the \SENDTO folder.
Then, instead of doing an Open With, just do a Send To.

Exmortis
07-08-2005, 08:57 AM
Just so you know... When you SHIFT/RIGHT CLICK on a file, you get a generic "Open With" menu item that you can select and then specify which application to use for that specific file (and put a check mark on the box to say always use that application).

And IrfanView has a setting in its option to add itself to the Send-To menu.