Results 1 to 9 of 9
  1. #1
    5 Star Lounger st3333ve's Avatar
    Join Date
    May 2003
    Location
    Los Angeles, California, USA
    Posts
    705
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Add batch file to File Types list? (XP SP-2)

    In previous versions of Windows you could make .BAT files show up in the Folder Options-->File Types list by messing with the EditFlags value for HKCRbatfile in the Registry, but that doesn't seem to work in XP SP-2.

    If I hit the New button in the File Types dialog and fill in "BAT" I can end up bringing up .BAT files to edit the settings, but if I close the dialog and re-open it, .BAT files are once again missing from the list. Is there a way to permanently add .BAT files to the list?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Add batch file to File Types list? (XP SP-2)

    I don't know how to do that.

    You probably already know this, but you can view/edit the actions for .bat files using RegEdit: navigate to HKEY_CLASSES_ROOTbatfileshell. For example, if you would like to make Edit the default action for .bat files, set the Default value of the above key to the string "edit".

  3. #3
    5 Star Lounger st3333ve's Avatar
    Join Date
    May 2003
    Location
    Los Angeles, California, USA
    Posts
    705
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Re: Add batch file to File Types list? (XP SP-2)

    Actually, I've just reinstalled XP SP-2 onto a new hard drive in the past month and was surprised today to find that "Edit" was already the default action for batch files, so I think that may now be the Windows default. (But it's also possible I tweaked that setting in the past couple of weeks and had already forgotten I'd done it.)

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Add batch file to File Types list? (XP SP-2)

    I'm pretty sure I've never messed with the settings for .bat files, and Open is the default action on my Windows XP SP-2 installation.

  5. #5
    5 Star Lounger st3333ve's Avatar
    Join Date
    May 2003
    Location
    Los Angeles, California, USA
    Posts
    705
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Re: Add batch file to File Types list? (XP SP-2)

    Thanks for the follow-up. Since I've made about 473 tweaks since mid-November, it wouldn't surprise me a bit if I'd already adjusted that and forgotten about it.

    (st3333ve resolves for the 89th time to be more like Stuart and keep thorough notes of all his tweaks ...)

  6. #6
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Add batch file to File Types list? (XP SP-2)

    Steve,

    Don't just resolve, go for it, it takes very little time. It's nearly time for New Year resolutions.
    <UL><LI>Create a text file on a network share for each PC that you own
    <LI>Create a shortcut to the correct text file on the desktop of each PC
    <LI>Each time you make a change put in the date and a one line comment
    <LI>Each time you get a problem put in the date and a one line comment[/list]This takes virtually no time to do and is incredibly useful

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

    Re: Add batch file to File Types list? (XP SP-2)

    To make life easier if you use Notepad:

    1] Pressing F5 inserts the current time and date at the cursor

    and/or

    2] Enter <code>.LOG</code> as the first line of the text file. Every time the file is opened, the time and date are added as the last line to the file, withe the cursor on the next line ready for you to enter new text.

  8. #8
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Add batch file to File Types list? (XP SP-2)

    Now that is useful, thank you. .LOG has now been added to all my change logs.

    Where on earth did you find this gem?

    StuartR

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

    Re: Add batch file to File Types list? (XP SP-2)

    Er... the Notepad Help file? <img src=/S/laugh.gif border=0 alt=laugh width=15 height=15>

    I can't remember when I first came across it, but many years ago...

Posting Permissions

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