geekhack
geekhack Community => Other Geeky Stuff => Topic started by: phinix on Sat, 31 August 2019, 19:11:14
-
I would like to add custom button to Windows Explorer ribbon/toolbar.
Like next to New Folder button, I would like to add a button to create a new folder with today's date in name, not "New Folder".
Is it possible?
-
You'll probably have to find a program that allows you to modify the context menu, or go into the registry yourself like this:
https://superuser.com/questions/1155368/windows-10-how-to-change-new-folder-default-name-for-folders-in-explorer-to-cu
-
OK, I don't know how to create a button, but added an item to context menu and have now a item "Todays Date Folder".
I put a batch under it to run md %date%, however it formats it in local format and creates a foldaer 01-Sep-2019.
I need it in this format DD-MM-YYYY
EDIT: OK, I only knew how to fix it by editting regional date and time format.
So I picked YYYY-MM-DD and set my batch to run:
@echo off
md %date:~0,2%-%date:~3,2%-%date:~6,4%
Added new item in context menu:
- Open registry
- Go to HKEY_CLASSES_ROOT\Directory\shell.
- Make a new key "Todays Date Folder"
- Inside this key, create another key command and add location of batch file
Add same in HKEY_CLASSES_ROOT\Directory\background