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 ResHacker
- Saved [ Menu : 1 : 1031 ] ... to c:\np_menu.res
- Edited the resfile to my needs
- closed ResHacker
- created scriptfile (see below)
- called Reshacker.exe -script c:\np_script.txt
CODE
[FILENAMES]
Exe=c:\notepad.exe
SaveAs=c:\notepad2.exe
Log=c:\np_log.log
[COMMANDS]
-addoverwrite "c:\np_menu.res", MENU, 1, 1031
Exe=c:\notepad.exe
SaveAs=c:\notepad2.exe
Log=c:\np_log.log
[COMMANDS]
-addoverwrite "c:\np_menu.res", MENU, 1, 1031
Now it took a minute and Reshacker created this logfile:
CODE
[01 Sep 2006, 15:02:20]
[FileNames]
Exe=c:\notepad.exe
SaveAs=c:\notepad2.exe
Log=c:\np_log.log
[Commands]
-addoverwrite "c:\np_menu.res", MENU, 1, 1031
Commands completed
[FileNames]
Exe=c:\notepad.exe
SaveAs=c:\notepad2.exe
Log=c:\np_log.log
[Commands]
-addoverwrite "c:\np_menu.res", MENU, 1, 1031
Commands completed
But 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