Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 has been asked before and already has an answer. If those answers do not fully address your question, please ask a new 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 or ask your own question.