Opening text files in another editor by default

By matav ยท 6 replies
Dec 2, 2008
  1. i am using Windows XP SP3

    when you open a text file, notepad pops up
    but i want the text file to open in a text editor that I specify.
    that seems easy... by going to folder options and creating associations and all [yeah! i've done that]

    but here's a complicated situation:

    when you edit any text-content files like say .reg .txt .log .ini .inf etc etc
    you know they open with notepad "by default"

    but... what i really want to do is replace the file "notepad.exe" in windows directory by notepad2
    [which is much much better, i've been using it for years and i just love it]
    i did this too
    i deleted notepad.exe from C:\WINDOWS\ and C:\WINDOWS\SYSTEM\ and replaced it with notepad2.exe

    [ofcourse by renaming notepad2.exe to notepad.exe]
    now when i open a text file, the original microsoft supplied notepad.exe pops up again
    it seems it has managed to re-replace the one i planted in those main directories... as if i had done nothing at all.

    now how do i go past this point?
    anything i should be knowing like maybe windows checks the integrity of the main exe files it has installed
    and if it finds a difference, it gets the file back to original or something like that?
    any work-around solution for this?
  2. LookinAround

    LookinAround Ex Tech Spotter Posts: 6,491   +184

    Yes, System File Checker verifies the integrity of signed files and replaces them if integrity check fails (used most to help stop malware)

    So what's the problem with just changing file association?????? Or that matter ANY problem with just changing file associationn?
  3. gguerra

    gguerra TS Guru Posts: 319

    right click on any text file, choose properties, general tab, advanced and choose the program you wish. If it not in the list click on browse and find it like that. Thats all there is to it. Do the same for ini, log or whatever.
  4. matav

    matav TS Enthusiast Topic Starter Posts: 144

    i have done those methods before... the change file association method & "open with" method
    but i just reinstalled windows and i was feeling too lazy to do that for the file extensions
    it's just too much effort, so i just wanted to replace the main editor exe file "notepad.exe" to save my time and effort

    i found the solution to my problem here:
    funny! i've done this before by manually replacing notepad.exe from all those specified folders
    but still windows got the notepad.exe back to normal [somehow... or maybe i wasn't fast enough]

    but somehow the batch file code on that site worked and i have no problem now
  5. jobeard

    jobeard TS Ambassador Posts: 11,158   +986

    I think it's the CHANGE button :)
  6. gguerra

    gguerra TS Guru Posts: 319

    My mistake, You are correct, it is the change button and not advanced . In any case he (matav) doesn't want to go through the trouble.
  7. matav

    matav TS Enthusiast Topic Starter Posts: 144

Topic Status:
Not open for further replies.

Similar Topics

Add your comment to this article

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...