Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to use mkdir to create a folder with this something like --> folder1-2013-04 (but the year and month should be dynamic and generated automatically.

share|improve this question

marked as duplicate by Ƭᴇcʜιᴇ007, grawity, Tog, Daniel Beck Apr 21 '13 at 21:17

This question was marked as an exact duplicate of an existing question.

This solved my problem:, Thank you. – Johan Larsson Apr 21 '13 at 17:19
For me in Sweden, it was as simple as adding this to the command, %date:~0,7% – Johan Larsson Apr 21 '13 at 17:38

Browse other questions tagged .