Jump to content

Recommended Posts

Posted

On my actual machine I use Notepad2 and in my unattended i would like to use it as well. What i did is i exported the reg files in the Classes Root like this:

[HKEY_CLASSES_ROOT\batfile\shell\edit\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,44,00,72,00,69,00,76,00,65,\
 00,25,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,00,66,00,69,00,\
 6c,00,65,00,73,00,5c,00,6e,00,6f,00,74,00,65,00,70,00,61,00,64,00,32,00,5c,\
 00,4e,00,4f,00,54,00,45,00,50,00,41,00,44,00,32,00,2e,00,45,00,58,00,45,00,\
 20,00,25,00,31,00,00,00

and i did this for all the extensions that i wanted Notepad2 to Open or Modify. I put all of this into my reg file that runs via m cmdlines.txt and it works(well sort of). When i come to test my reg modifition after my unattended installationis done, i click on a txt file and instead of openning in notepad2 it asked me what program to open with. I select notepad2 and it open and if i open the file again it asks again and the "always open with..." is grayed out. I have the problem with all the extensions i modified. What i basically want is for notepad2 to remplace notepad completly or is there another text editor i could use?


Posted

this is my solution:

replace notepad with notepad2 (makecab notepad2 as notepad.ex_).

add this reg...

;right click notepad
[HKEY_CLASSES_ROOT\*\shell\Notepad]

[HKEY_CLASSES_ROOT\*\Shell\Notepad\Command]
@="Notepad.exe \"%1\""

done! you'll now have a notepad entry for all your files

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...