@echo off
:: -----------------------------------------------
:: Objectives:
:: [1] To copy and rename the specified file extension
:: [2] To extract the specified resource
:: [3] To update the specified application
:: [4] To delete the specified data
:: -----------------------------------------------
:: First...rename the specified file extension....
nircmd shellcopy C:\resource_hacker\existing_dll\Studio_FX_FreqAnalyzer.dll C:\resource_hacker\new_dll\orig_32.dll yestoall
:: -----------------------------------------------
:: ...next...extract the specified resource...
nircmd wait 500
C:\resource_hacker\ResourceHacker.exe -open C:\resource_hacker\new_dll\orig_32.dll -save C:\resource_hacker\new_dll\orig_32.res -action extract -mask MANIFEST, -log CONSOLE
:: -----------------------------------------------
:: ...then...update the specified application...
nircmd wait 500
C:\resource_hacker\ResourceHacker.exe -script C:\resource_hacker\scripts\txt\convert_fa.txt
:: -----------------------------------------------
:: ...then...delete the specified data...
nircmd wait 500
del C:\resource_hacker\new_dll\orig_32.dll /q
del C:\resource_hacker\new_dll\*.res /q
:: -----------------------------------------------
:: ...finally...exit...
exit