How to create every New Folder with name as current date-time in windows ?
Every time we create a folder in windows, it's default name is New Folder.
But there is a simple trick by which you can generate every new folder, with a customized name of your choice.
Let's say you want to create every new folder with name as date-time of creation. So here is what you need to do.
Just open notepad or notepad++
Copy and past below line:
MD %date:~10%-%date:~4,2%-%date:~7,2%_%time:~0,2%%time:~3,2%
and save this file with any name, but make sure to save with .bat extension. For example: ploymate.bat
Now, whenever you double click on this bat file it will create a folder with name as your current date-time at the location of this file. Easy !!
Now, you can further customize the folder name. Say, if you don't want the time but you want to add some prefix. You can put something like following:
MD PloyMate_%date:~10%-%date:~4,2%-%date:~7,2%
Putting above line in .bat file will create folder with name something like PloyMate_2020-08-11.
Try it. and let us know how you used this little trick. 😃
Comments
Post a Comment