REM res2ins: a batch file to update %1.ins where lattice and structure parameters are introduced from *.res output by EXPO2004. REM A backup copy of %1.ins, i.e., %1.bak, is made in the same folder. SET SAMPLE=%1 REM Absolute path for the location of res2ins.exe. set BaseDir=%RootDir%\X\RIETAN-FP SET RES2INS=%BaseDir%\RIETAN_VENUS IF EXIST "%SAMPLE%.bak" DEL "%SAMPLE%.bak" COPY "%SAMPLE%.ins" "%SAMPLE%.bak" "%RES2INS%\res2ins.exe" "%SAMPLE%.res" "%SAMPLE%.bak" "%SAMPLE%.ins"