Results 1 to 7 of 7
  1. #1
    2 Star Lounger
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    199
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Windows Explorer - File Types

    Hi,

    Can someone suggest how I can add a filetype which includes the file "hosts" (no extension!!) to my filetypes so that Notepad opens when I need to update it. Or some other convenient way for me to be able to include Open with Notepad in my right click menu.

    Thanks in advance,

    Peter Moran

  2. #2
    Banned Member
    Join Date
    Jul 2002
    Location
    Newport Richey, Florida, USA
    Posts
    2,149
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Windows Explorer - File Types

    Try this Here

  3. #3
    Banned Member
    Join Date
    Jul 2002
    Location
    Newport Richey, Florida, USA
    Posts
    2,149
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Windows Explorer - File Types

    And here is another way.

    Right Click Open with Notepad Option
    This is a very handy option allowing you to open a file with Notepad just by right clicking on the icon. If no association exists for a file, Notepad will then be used to open it by default. After making this change, when you right click on a file you will see "Open with Notepad" as an option.

    Go to:
    HKEY_CLASSES_ROOT*shell

    Highlight shell, right click and create a new key named {open}
    Change the default value of open to {Open With Notepad}
    Highlight open, right click and create a new key named {command}
    Change the default value of command to {notepad.exe %1}

  4. #4
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Windows Explorer - File Types

    I don't think you can create a suitable association as that is based on the extension - and the Hosts file doesn't have one.

    You should be able to add Notepad to right_click menu - locate your SendTo folder (on my XP it is in Cocuments and SettingsuseraccountSENDTO), right_click and add a shortcut to notepad.exe.

    My preferred method is to have Notepad on my QuickLaunch tray as I use it so often - click to open it, then simply drag the file you want to view into the open Notepad window.

  5. #5
    2 Star Lounger
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    199
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Re: Windows Explorer - File Types

    Hi Guys,

    Thanks for your input. I will probably go for a belts and braces solution and wack Notepad on the right click menu as well as installing it on the Quick Lauch Toolbar.

    Regards,

    Peter Moran
    Two heads are always better than one!

  6. #6
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Windows Explorer - File Types

    FYI, David Rasley came up with a neat solution in <post#=264366>post 264366</post#> - creating a shortcut to Notepad to open up the Hosts file in one (double) hit!

  7. #7
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    Cincinnati, Ohio, USA
    Posts
    7,089
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Windows Explorer - File Types

    Ah, yes - I used to employ this solution on systems that were shipped to our clients because editing the hosts file was a common thing. Plop that on the QL bar or desktop, and off you go!
    -Mark

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •