How to Create a folder with current date

I want to create a folder at a particular location with today’s date as the folder name, and get absolute path of that folder in an argument. The below command creates the folder, how do i execute this as a step and then get the absolute path for that new folder.

mkdir “%date:~-7,2%”-"%date:~-10,2%"-"%date:~-4,4%

First generate todays date and convert it to string. Then assign it to argument. Post that create a folder with argument value


1 Like