PITU Posted September 1, 2006 Share Posted September 1, 2006 Hello!I was just trying to edit the Menu in "notepad.exe". It will do very fine, if I do it manually.But, when it comes to scripting I am not able to edit the file.Here is what I have done:I opened the original "notepad.exe" in ResHackerSaved [ Menu : 1 : 1031 ] ... to c:\np_menu.resEdited the resfile to my needsclosed ResHackercreated scriptfile (see below)called Reshacker.exe -script c:\np_script.txtnp_script.txt[FILENAMES]Exe=c:\notepad.exeSaveAs=c:\notepad2.exeLog=c:\np_log.log[COMMANDS]-addoverwrite "c:\np_menu.res", MENU, 1, 1031Now it took a minute and Reshacker created this logfile:[01 Sep 2006, 15:02:20][FileNames]Exe=c:\notepad.exeSaveAs=c:\notepad2.exeLog=c:\np_log.log[Commands]-addoverwrite "c:\np_menu.res", MENU, 1, 1031Commands completedBut it does not create the edited file!I do not know, where the Problem is.I hope, anybody can help me.Thanks in andvance/PITU Link to comment Share on other sites More sharing options...
spacesurfer Posted September 7, 2006 Share Posted September 7, 2006 i use metapad. much better than notepad. it has a toolbar, unlike xp notepad or even vista notepad.i simply rename metapad to notepad, makecab compress, and replace installation with this one! Link to comment Share on other sites More sharing options...
Delprat Posted September 8, 2006 Share Posted September 8, 2006 PITU, looking at your log shows that Reshacker didn't found the MENU 1 1031 resource in your .res file. (otherwise the log would have said "Modified: MENU, 1, 1031")If your c:\np_menu.res file only contains the resources to update and no unecessary ones (it's likely to be the case), you can omit the restype, resname and reslang from the command. I never tested that in a script file, but it works from the commandline :C:\>ResHacker.exe -addoverwrite notepad.exe, notepad2.exe, np_menu.res, , ,(you may need to check the arguments order in the help file)++ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now