Batch file to create file on todays date
Posted: 30 Sep 2013 12:37
Hi,
I need to create 3 empty text files on todays date the format is 011013A, 011013B, 011013C, its ddmmyy.
The below batch does create a empty file but i tried to change the format but failed to achive the results. Will some help me to create 3 text files in one time with this format ddmmyy+A,B,C.
I need to create 3 empty text files on todays date the format is 011013A, 011013B, 011013C, its ddmmyy.
The below batch does create a empty file but i tried to change the format but failed to achive the results. Will some help me to create 3 text files in one time with this format ddmmyy+A,B,C.
Code: Select all
@echo off
set tdtd=none
for /F "tokens=2-4 delims=/ " %%i in ('date /t') do set tdtd=%%j%%i%%k
set tufn=%tdtd%%A.txt
type NUL>%tufn%