Post the exe file you are attempting to modify (if you have not packed or protected it there is absolutely no reason why you are failing to dump a res file to be modified).
Also if it is your program that you are modifying did you know that AutoItWrapper supports creating string table entrances using a simple directive plus an ini format file?
Ed:
Your sure? Then why are you still specifying a resource type plus index plus an incorrect sub language of
0!
if "%~1"=="" exit
if "%~x1" NEQ ".exe" exit
if exist "%~dp1%~n1_reshack.exe" del /F /Q "%~dp1%~n1_reshack.exe"
goto write
:write
cd res
echo [FILENAMES]>script_reshack.txt
echo Exe="%~1">>script_reshack.txt
echo SaveAs="%~dp1%~n1_reshack.exe">>script_reshack.txt
echo [COMMANDS]>>script_reshack.txt
echo -modify dialog.res, dialog,,0 >>script_reshack.txt
echo -modify menu.res, MENU,,0 >>script_reshack.txt
echo -modify string_table7.res,
STRINGTABLE,
7,
0 >>script_reshack.txt
echo -modify string_table8.res,
STRINGTABLE,
8,
0 >>script_reshack.txt
echo -modify string_table9.res,
STRINGTABLE,
9,
0 >>script_reshack.txt
echo -modify string_table10.res,
STRINGTABLE,
10,
0 >>script_reshack.txt
echo -modify string_table11.res,
STRINGTABLE,
11,
0 >>script_reshack.txt
echo -modify string_table12.res,
STRINGTABLE,
12,
0 >>script_reshack.txt
echo -modify string_table313.res,
STRINGTABLE,
313,
0 >>script_reshack.txt
ResHacker.exe -script script_reshack.txt
goto:eof
KEY of above:
Red = Not necessary
if you are certain the values in your res file match the exe file.
Green = See
Red. plus your value of
0 is actually incorrect for what you are trying to do (and probably the cause of all this pain)
So either:if "%~1"=="" exit
if "%~x1" NEQ ".exe" exit
if exist "%~dp1%~n1_reshack.exe" del /F /Q "%~dp1%~n1_reshack.exe"
goto write
:write
cd res
echo [FILENAMES]>script_reshack.txt
echo Exe="%~1">>script_reshack.txt
echo SaveAs="%~dp1%~n1_reshack.exe">>script_reshack.txt
echo [COMMANDS]>>script_reshack.txt
echo -modify dialog.res, dialog,,0 >>script_reshack.txt
echo -modify menu.res, MENU,,0 >>script_reshack.txt
echo -modify string_table7.res,,, >>script_reshack.txt
echo -modify string_table8.res,,, >>script_reshack.txt
echo -modify string_table9.res,,, >>script_reshack.txt
echo -modify string_table10.res,,, >>script_reshack.txt
echo -modify string_table11.res,,, >>script_reshack.txt
echo -modify string_table12.res,,, >>script_reshack.txt
echo -modify string_table313.res,,, >>script_reshack.txt
ResHacker.exe -script script_reshack.txt
goto:eof
Orif "%~1"=="" exit
if "%~x1" NEQ ".exe" exit
if exist "%~dp1%~n1_reshack.exe" del /F /Q "%~dp1%~n1_reshack.exe"
goto write
:write
cd res
echo [FILENAMES]>script_reshack.txt
echo Exe="%~1">>script_reshack.txt
echo SaveAs="%~dp1%~n1_reshack.exe">>script_reshack.txt
echo [COMMANDS]>>script_reshack.txt
echo -modify dialog.res, dialog,,0 >>script_reshack.txt
echo -modify menu.res, MENU,,0 >>script_reshack.txt
echo -modify string_table7.res, STRINGTABLE, 7,2057 >>script_reshack.txt
echo -modify string_table8.res, STRINGTABLE, 8,2057 >>script_reshack.txt
echo -modify string_table9.res, STRINGTABLE,9,2057 >>script_reshack.txt
echo -modify string_table10.res, STRINGTABLE,10,2057 >>script_reshack.txt
echo -modify string_table11.res, STRINGTABLE,11,2057 >>script_reshack.txt
echo -modify string_table12.res, STRINGTABLE,12,2057 >>script_reshack.txt
echo -modify string_table313.res, STRINGTABLE,313,2057 >>script_reshack.txt
ResHacker.exe -script script_reshack.txt
goto:eof
Should Work.
Edited by Mobius, 28 February 2012 - 12:20 AM.