replace this statement
>tmp_fr.txt

with

>c:\tmp_fr.txt


and

replace this statement

del /s tmp_fr.txt

with

del /s c:\tmp_fr.txt


replace this statement

<tmp_fr.txt

with

<c:\tmp_fr.txt