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

0 Members and 1 Guest are viewing this topic.

Offline phinix

  • Thread Starter
  • Posts: 2301
  • Location: Haggis Land
  • On a diet.. again.. don't ask...
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 | 3070 | 8TB SSD + 2x 1TB SSD | Z390 Aorus Pro ITX | 16GB RAM | SFX 600W | Sentry 2.0 | Ruark Audio MR1 Mark II | LG OLED 48CX
Realforce 87u55 | CM QuickFire Rapid MX Blacks | NCR-80 87g Gateron Oil Kings | Drop CSTM80 | Logitech Pro Superlight
SA: Retro Petscii, 7bit Round6 'Symbiosis', Filco, Carbon Bone Cherry: GMK Laser, OG double shot caps, CRP APL GSA: Retro High-light HSA: Hyperfuse

::: Phinix Cube ::: Phinix Nano Tower ::: Phinix Aurora ::: Phinix Chimera ::: Phinix Retro :::

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: 2301
  • Location: Haggis Land
  • On a diet.. again.. don't ask...
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 | 3070 | 8TB SSD + 2x 1TB SSD | Z390 Aorus Pro ITX | 16GB RAM | SFX 600W | Sentry 2.0 | Ruark Audio MR1 Mark II | LG OLED 48CX
Realforce 87u55 | CM QuickFire Rapid MX Blacks | NCR-80 87g Gateron Oil Kings | Drop CSTM80 | Logitech Pro Superlight
SA: Retro Petscii, 7bit Round6 'Symbiosis', Filco, Carbon Bone Cherry: GMK Laser, OG double shot caps, CRP APL GSA: Retro High-light HSA: Hyperfuse

::: Phinix Cube ::: Phinix Nano Tower ::: Phinix Aurora ::: Phinix Chimera ::: Phinix Retro :::