Context Menu Item Creation

datsun

New member
Local time
7:32 AM
Messages
3
Can someone please help me to create a context menu item. I would like to select a few files, right click and have a menu option to run a program. The program need to receive the files or folder selected as arguments. Any help appreciated.
 

My Computer

OS
Windows 7 32 Bit

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Assembled
OS
Microsoft Windows 10 Pro Insider Preview 64-bit
CPU
Intel(R) Core(TM) i3-4130 CPU @ 3.40GHz
Motherboard
Gigabyte Technology Co., Ltd. B85M-D3H
Memory
Corsair Vengence 4GB x2 (8.00GB Dual-Channel DDR3 @ 798MHz)
Graphics Card(s)
2047MB GeForce GTS 450 (ZOTAC International)
Sound Card
Onboard (Realtek High Definition Audio)
Monitor(s) Displays
LG Flatron E2040T
Screen Resolution
1600x900
Hard Drives
Western Digital 1 TB
Seagate 500 GB
PSU
Corsair VS550
Case
Cooler Master K380
Cooling
Cooler Master Seidon 120V Plus
Keyboard
Logitech MK260r
Mouse
Logitech MK260r
Internet Speed
PMPL Broadband
Antivirus
Windows Defender + MBAM
Browser
Firefox
Other Info
Dell Studio 15" Laptop
Thanks Arc, that is a very interesting program but not quite what I need. I probably should better explain what I'm trying to do. I need help to create the registry entries to create a context menu item called "Optimise". To use the context menu item you drag a box around some photos in a folder, right click the selection and select "Optimise". The context menu item needs to run a program and pass the selection as commandline arguments to the program.
 

My Computer

OS
Windows 7 32 Bit

My Computer

Computer type
PC/Desktop
OS
Windows 10 Home x64
CPU
INTEL Core i5-750 Quad-Core 3.37GHz
Motherboard
ASUS P7P55D
Memory
HyperX Fury Black Series 8GB (2 x 4GB) 1866Mhz
Graphics Card(s)
EVGA GeForce GTX 750 Superclocked 1GB 128-Bit GDDR5
Monitor(s) Displays
LG 32MA68HY 32" IPS
Screen Resolution
1920 x 1080
Hard Drives
Samsung 840 Evo 120GB, SEAGATE 500GB Barracuda® 7200.12, SATA 3 Gb/s, 7200 RPM, 16MB cache
PSU
ANTEC TruePower New TP-550, 80 PLUS, 550W
Case
ANTEC Three Hundred Illusion
Cooling
COOLER MASTER Hyper 212 Plus, 4 x 120mm 1 x 140mm Noctua's
Internet Speed
85 + Mbps
Antivirus
Avast
Browser
Vivaldi

My Computer

Computer Manufacturer/Model Number
HP Pavillion dv5t (generation 1)
OS
Vista 64 bit and 32 bit (SP2)
CPU
Intel(R) Core(TM)2 Duo Processor T9400 (2.53 GHz
Memory
4GB DDR2 System Memory (2 Dimm)
Graphics Card(s)
512 MB NVIDIA GeForce 9600M GT
Monitor(s) Displays
15.4" diagonal WSXGA+ High-Definition HP BrightView Widescre
Screen Resolution
1680 x 1050
Hard Drives
320GB 5400RPM SATA Hard Drive with HP ProtectSmart Hard Drive Protection
Keyboard
Built-in HP
Mouse
Built in - Synaptics TouchPad V6.5 on PS/2 Port
Internet Speed
Max
Other Info
~ Intel Next-Gen Wireless-N Mini-card w/Bluetooth ~ Blu-Ray ROM DVD+/-R/RW ~ Integ. HDTV Hybrid Tuner ~ 12 Cell Battery ~ MS Office (Home Premium) 2007 ~
Thanks A Guy and Imperfect1.

I used Ultimate Window Context Menu Customiser to get the key i need. The link on the home site for this program was dead. Working link found here:

Download: Ultimate Windows Context Menu Customizer ~ MinitechSource

The keys I wound up with are:

HKEY_CLASSES_ROOT/*/SHELL/MYKEY/

  • (Default)--- Reg_SZ--- Optimise Files
  • Icon -------Reg_SZ--- C:\Scripts\myicon.ico
  • Position-----Reg_SZ--- Middle

HKEY_CLASSES_ROOT/*/SHELL/MYKEY/COMMAND

  • (Default)----Reg_SZ----C:\Scripts\myprogram.exe %1

This is running the program properly and passing the files selected as arguments to the program. The problem is that it runs a seperate instance of the program for everyfile I select.

So if I drag a box around three files, right click selection and left click Optimise Files then I get three instances of the program run with single file in each, instead of a single instance with three files in it.

What I need is for it to pass all the files as arguments to a single instance of the program.

Can anyone help with this?
 

My Computer

OS
Windows 7 32 Bit
Back
Top