I recently needed to attach current timestamp to the names of some files. Following was the batch script I came up with to perform the task.

@echo off
set timestamp=%date:~10,4%%date:~4,2%%date:~7,2%%time:~0,2%%time:~3,2%%time:~6,2%%time:~9,2%
ren %1 %timestamp%%1
@echo on

//TODO: Option to rename all files in a directory

//TODO: Option to read file names to be renamed from a text file