: Sintaxis: nombrebat archivo_a_renombrar: Autor ne0x@echo offif not exist %1 echo Error ! & goto :EOFset fechaYhora=%~t1set fecha=%fechaYhora:~0,10%set fecha=%fecha:/=-%ren %1 %fecha%%~x1