Thread: Regedit

  1. #1
    japp's Avatar
    japp is offline Gold Member
    Join Date
    Jan 2011
    Location
    Norway
    Posts
    814

    Default Regedit

    Can someone please check that I've done it correctly with this .reg file?Windows Registry Editor Version 5.00

    ; clear the key
    [-HKEY_CLASSES_ROOT\.txt]

    ; and recreate
    [HKEY_CLASSES_ROOT\.txt]
    "PerceivedType"="text"
    @="txtfile"
    "Content Type"="text/plain"

    [HKEY_CLASSES_ROOT\.txt\ShellNew]
    ; @C:\Windows\system32\notepad.exe,-470
    "ItemName"=hex(2):40,00,43,00,3a,00,5c,00,57,00,69 ,00,6e,00,64,00,6f,00,77,00,\
    73,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33 ,00,32,00,5c,00,6e,00,6f,\
    00,74,00,65,00,70,00,61,00,64,00,2e,00,65,00,78,00 ,65,00,2c,00,2d,00,34,00,\
    37,00,30,00,00,00
    "NullFile"=""

  2. #2
    hackerman1 is offline Moderator
    Join Date
    Dec 2008
    Location
    Sweden
    Posts
    1,525

    Default

    And what is this suppoed to achieve...?

  3. #3
    japp's Avatar
    japp is offline Gold Member
    Join Date
    Jan 2011
    Location
    Norway
    Posts
    814

    Default

    To open a new text document when right-clicking (replacing Notepad)

    Correct entry shall be:
    ; @C:\Windows\system32\notepad++.exe,-470

  4. #4
    Kapil Arya's Avatar
    Kapil Arya is offline Microsoft MVP
    Join Date
    May 2012
    Location
    INDIA
    Posts
    143

    Default

    Hello,

    You can use general variable in this case:

    ; @%SystemRoot%\system32\notepad++.exe,-470
    Good luck

  5. #5
    japp's Avatar
    japp is offline Gold Member
    Join Date
    Jan 2011
    Location
    Norway
    Posts
    814

    Default

    Thanks, I need luck

    Once again an error above; the path is:
    ;Program Files (x86)\Notepad++ 6.7 Portable\notepad++.exe,-470

    So this is how my .regedit file looks like after corrections:

    Windows Registry Editor Version 5.00

    ; clear the key
    [-HKEY_CLASSES_ROOT\.txt]

    ; and recreate
    [HKEY_CLASSES_ROOT\.txt]
    "PerceivedType"="text"
    @="txtfile"
    "Content Type"="text/plain"

    [HKEY_CLASSES_ROOT\.txt\ShellNew]
    ;Program Files (x86)\Notepad++ 6.7 Portable\notepad++.exe,-470
    "ItemName"=hex(2):40,00,43,00,3a,00,5c,00,57,00,69 ,00,6e,00,64,00,6f,00,77,00,\
    73,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33 ,00,32,00,5c,00,6e,00,6f,\
    00,74,00,65,00,70,00,61,00,64,00,2e,00,65,00,78,00 ,65,00,2c,00,2d,00,34,00,\
    37,00,30,00,00,00
    "NullFile"=""

Posting Permissions

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

Log in

Log in

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22