Example batch file for Windows

This batch file converts all percentage values to fractions in all plasma parent fraction files (named as *ap.rat) in the current working directory. Save the code in text editor (for example Notepad) into a file with extension .bat, for example percentages2fractions.bat, into the same folder where the data files are. Then double click the .bat file icon to execute it.

@echo off
setLocal EnableDelayedExpansion
for %%f in (*ap.rat) do (
  for /f %%r in ('dftmax.exe -clean %%f') do set var=%%r
  if !var! gtr 1 taccalc.exe %%f : 100 %%f
)

Note that this is just an example; program tacp2f can be used for the same purpose.


See also:



Tags:


Updated at: 2016-06-17
Created at: 2010-09-16
Written by: Vesa Oikonen