[Solved] How to convert batch file (.bat) to .cmd file


convertBatToCmd.bat:

@echo off
echo ConvertBatToCmd.bat
if not exist "%1" echo call with file to be converted as parameter & goto :eof
ren "%1" "%~n1.cmd"

Usage: convertBatToCmd myfile.bat

(sorry, couldn’t resist…)

back to seriousity: more infos here

2

solved How to convert batch file (.bat) to .cmd file