@echo off REM Set the path to the nwn_erf.exe executable set nwn_erf=_tools\nwn_erf.exe REM Set the output ERF file name set erf_output=prc_companion.hak REM Set the Baseitem directory path set working_dir=_content\ REM Create the ERF file by iterating through subfolders %nwn_erf% -f %erf_output% -e HAK -r 99 -v -c %working_dir% echo ERF file created: %erf_output% pause