Take the 2-minute tour ×
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
1  
2  
This solved my problem: superuser.com/a/512489/136767, Thank you. –  Johan Larsson Apr 21 '13 at 17:19
2  
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
add comment

marked as duplicate by techie007, 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.

Browse other questions tagged or ask your own question.