Setting up Notepad2 to edit your scripts

I have been playing around with my registry on my pc (I know a dangerous thing to do some times).

Now what I had done was similar to that in the post on how to edit VBS files in VBSEditor, I created a folder in C:\Program Files\ called Notepad2 and copied the files for Notepad2 into there.

To set up Notepad to to edit documents from a right click you need to do the following:

  1. Open up Registry Editor
  2. Go to HKEY_CLASSES_ROOT\name of the file type in this case it is the inf file so:
    1. HKEY_CLASSES_ROOT\inffile
  3. under there go to the Shell key and create a new key called "Edit with Notepad2"
  4. under that create another key called "command"

Then:

once you have created the 2 new keys

image

in the command double click on the default value and enter in the following:

"C:\Program Files\Notepad2\Notepad2.exe" "%1"

imageand then click on ok.

Once you then right click on an inf file you will get the following option:

image

  Add to Technorati Favorites StumbleUpon Toolbar

No comments posted yet.

Leave a reply

Title *

Name *

Email

Url

Comment *  

Please add 5 and 3 and type the answer here: