REM Basename of *.sti (input file of STARUCTURE TIDY) SET SAMPLE=%1 REM Absolute path for the location of rietan.exe, orffe.exe, satructure_tidy.exe, etc. set BaseDir=%RootDir%\X\RIETAN-FP SET RIETAN=%BaseDir%\RIETAN_VENUS "%RIETAN%\structure_tidy.exe" "%SAMPLE%.sti" > "%SAMPLE%.sto"