While searching for a way to create a date-named directory in Windows, I came accross this question with that accepted answer.
There's a comment below the accepted answer:
To make it more easy:
mkdir %date:/=%
So, %date%
prints the current date, but what does :/=
do?
Word forms: utes Ute is an abbreviation for utility vehicle. [Australian, informal]
Ute is an abbreviation for ' utility vehicle'.
Historically, the term "ute" (short for 'utility vehicle') has been used to describe a 2-door vehicle based on a passenger car chassis, such as the Holden Commodore, Australian Ford Falcon, Chevrolet El Camino and Subaru BRAT.
Ute. [ yoot ] SHOW IPA. / yut / PHONETIC RESPELLING. noun, plural Utes, (especially collectively) Ute. a member of an American Indian people of Utah and W Colorado.
It means substitute for the string between the : and the = with the string after the = and before the closing %
So it strips out any / from the variable %date%
which is set by default to the current date.
The form of the command is
%variable:text=replace%
and it removes text
and inserts replace
in the same spot.
In your case the replace
is empty so it just removes any /
characters from the date string.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With