Author Topic: Custom button on Windows Explorer Ribbon  (Read 5667 times)

0 Members and 1 Guest are viewing this topic.

Offline phinix

  • Thread Starter
  • Posts: 1135
  • Location: Haggis Land
  • RIP typo...
Custom button on Windows Explorer Ribbon
« 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?
9100 | 2070s | 2x 1TB SSD | Z390 Aorus Pro ITX | 16GB RAM | SFX 600W | Philips 40" 4K BDM4065UC | Sentry 1.1
Realforce R2 55g Novatouched+Deskeys #3 | CM QuickFire Rapid Frosty Flake MX Blacks | Model M | Logitech MX518 Legend | X52 PRO
SA: Carbon, Penumbra, 7bit's Round6, Amber Screen Cherry: OG caps XDA: Canvas MDA: Big Bone MT3: Serika

 ::: Phinix Cube ::: Phinix Nano Tower ::: Phinix Aurora ::: Phinix Chimera ::: Phinix Retro :::
star citizen :::  CMDR Phinix 325A LTI

Offline trizkut

  • * Global Moderator
  • Posts: 1207
  • Location: MA
Re: Custom button on Windows Explorer Ribbon
« Reply #1 on: Sat, 31 August 2019, 19:17:15 »
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


Offline phinix

  • Thread Starter
  • Posts: 1135
  • Location: Haggis Land
  • RIP typo...
Re: Custom button on Windows Explorer Ribbon
« Reply #2 on: Sat, 31 August 2019, 20:37:30 »
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
« Last Edit: Mon, 27 July 2020, 04:51:12 by phinix »
9100 | 2070s | 2x 1TB SSD | Z390 Aorus Pro ITX | 16GB RAM | SFX 600W | Philips 40" 4K BDM4065UC | Sentry 1.1
Realforce R2 55g Novatouched+Deskeys #3 | CM QuickFire Rapid Frosty Flake MX Blacks | Model M | Logitech MX518 Legend | X52 PRO
SA: Carbon, Penumbra, 7bit's Round6, Amber Screen Cherry: OG caps XDA: Canvas MDA: Big Bone MT3: Serika

 ::: Phinix Cube ::: Phinix Nano Tower ::: Phinix Aurora ::: Phinix Chimera ::: Phinix Retro :::
star citizen :::  CMDR Phinix 325A LTI