:: Remove the second file extension ('.txt') if you want to use this batch file
SET SP=%programfiles%\GnuWin32\bin
%SP%\SED -f %SP%\cim.txt "%~1"> %~dpn1.bat"