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

0 Members and 1 Guest are viewing this topic.

Offline phinix

  • Thread Starter
  • Posts: 2450
  • 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?
12100 | 9070XT | 2TB SSD | ROG STRIX B760-I ITX | 32GB RAM | SFX 850W | NR200p | Ruark Audio MR1 Mark II | LG OLED 42C4
Realforce 87u55 | CM QuickFire Rapid MX Blacks | Filco TKL 85g Gateron Oil Kings | Tiger Lite 85g Oil Kings | Logitech Pro Superlight
SA: Retro Petscii, 7bit Round6 'Symbiosis', Filco, Carbon Bone  CHERRY: GMK Laser, GMK OG double shot, CRP APL
GSA: Retro High-light  HSA: Hyperfuse  XDA: Canvas  PBS: MV Classic

::: 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: 2450
  • 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 »
12100 | 9070XT | 2TB SSD | ROG STRIX B760-I ITX | 32GB RAM | SFX 850W | NR200p | Ruark Audio MR1 Mark II | LG OLED 42C4
Realforce 87u55 | CM QuickFire Rapid MX Blacks | Filco TKL 85g Gateron Oil Kings | Tiger Lite 85g Oil Kings | Logitech Pro Superlight
SA: Retro Petscii, 7bit Round6 'Symbiosis', Filco, Carbon Bone  CHERRY: GMK Laser, GMK OG double shot, CRP APL
GSA: Retro High-light  HSA: Hyperfuse  XDA: Canvas  PBS: MV Classic

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