Quick Right Click open XYZ drive ..

Discussion in 'Discussion' started by Ghost, Nov 22, 2023.

  1. Ghost

    Ghost Forum Crapolator

    .. As I go through my old windows 7 builder stuff I find things that are of interest to me from that time , well here is 1 that I find that might be useful to noone and used by me LOL

    PLEASE DO NOT RUN THE .CMD until you read this post entirely PLEASE


    @echo off
    :: Read me is look at the reg keys below, please keep reading ..
    :: mybackupdrive1 is a entry into the registery
    :: 1TB SSD Backup
    :: the above is the entry for my PC 1TB SSD Backup
    :: "explorer.exe D:\\"
    :: the above only change the D to whatever you like
    :: Change Icon image is
    :: "D:\HD-Dark.ico"
    :: Do not change it to a double backlash like "D:\\HD-Dark.ico"
    :: the above is just steps to what could be done,
    :: change the name here in this file
    :: ALL must be done for each 'Right click' menu to work,
    :: the registry will sort it as to alphabetical ( I think )
    :: NOTE -- You can change the 'Bottom' to 'Middle' or 'Top' in the below lines there is 2 entries :p
    :: Ghost Nov 22 2023

    REM ####### SET DRIVE D as BACKUP ########
    SET KEY01=HKEY_CLASSES_ROOT\DesktopBackground\Shell\mybackupdrive1
    SET KEY02=HKEY_CLASSES_ROOT\Directory\Background\shell\mybackupdrive1
    REM #################################
    REM KEY01 Entries
    REG ADD %KEY01% /V 1TB SSD Backup /D "explorer.exe D:\\" /f
    REG ADD %KEY01% /D "1TB SSD Backup" /f
    REG ADD %KEY01% /V Icon /D "D:\HD-Dark.ico" /f
    REG ADD %KEY01% /V Position /D "Bottom" /f
    REG ADD %KEY01%\command /D "explorer.exe D:\\" /f
    REM KEY02 Entries
    REG ADD %KEY02% /V 1TB SSD Backup /D "explorer.exe D:\\" /f
    REG ADD %KEY02% /D "1TB SSD Backup" /f
    REG ADD %KEY02% /V Icon /D "D:\HD-Dark.ico" /f
    REG ADD %KEY02% /V Position /D "Bottom" /f
    REG ADD %KEY02%\command /D "explorer.exe D:\\" /f
    REM ####### END OF SET DRIVE D as BACKUP ########



    This is desktop right click , folders are similar

    Untitled.png
     

    Attached Files:

    Last edited: Nov 22, 2023
    bphlpt and Trouba like this.
  2. Ghost

    Ghost Forum Crapolator

    If this could be scripted out, that would be very nice
     

Share This Page