Dated Folder Batch file errors on the 20th of the month? - TechRepublic
Question
January 19, 2014 at 10:43 PM
jammyjj

Dated Folder Batch file errors on the 20th of the month?

by jammyjj . Updated 12 years, 4 months ago

I am new to this and have created a batch file that creates a current dated folder with a user entered title. Unfortunately it does not create the year for the 20th of the month. e.g. On the 19th it will create “140119 – Test” but on the 20th “0120 – Test” Any ideas what is causing it?

It must be the Delims that is causing the issue but I don’t know how to get around it.

@echo off
@REM Setups

This discussion is locked

All Comments