I'm forced to use DOS to write some batch scripts. How to do arithmetic operations on variables? How to re-write the last line?
FOR %%f IN (*.ogg) DO CALL :runsox "%%f"
del temp.ogg tmpfile
GOTO :EOF
:runsox
soxi -D %1>tmpfile
SET /P decvalue=<tmpfile * 1.2
Update:: Following bhu1st's post, I couldn't see exactly how to apply that to my script. But GNU bash has the same problem, cannot operate on floating point numbers. The way to solve this in bash is to calculate the value with an bc, a command line calculator. I download a command line calculator. and use as in the line:
calcoo %decvalue%*1.2>tmpfile