Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Context Menu for url files

14 Jul 2015   #1
ur00361883

Windows 7 Ultimate x64
 
 
Context Menu for url files

I wrote a code to delete a file.

But when I am trying to delete a shortcut, it it deleting target file instead of shortcut when I created a context menu entry for this executable.

The executable is working fine if we use it normally instead of context menu.But with COntext menu it is taking the target instead of shortcut.

The context menu I added for files is by using below registry

Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\Delete Permanently\command]
@="\"C:\\Program Files\\Permanent Delete\\Delete Permanently.exe\" \"%1\""
And I solved the problem for Shortcut files adding below registry also.

Code:
[HKEY_CLASSES_ROOT\lnkfile\shell\Delete Permanently\command]
@="\"C:\\Program Files\\Permanent Delete\\Delete Permanently.exe\" \"%1\""
I got a different issue now and the context menu is not coming for .url files. I tried the similar approach used for lnkfile and tried in hive InternetShortcut but even with system user rights also I am not able to add registries to this hive.

Code:
HKEY_CLASSES_ROOT\InternetShortcut\shell
Please help me on this.


My System SpecsSystem Spec
.
14 Jul 2015   #2
Brink

64-bit Windows 10 Pro
 
 

Hello, and welcome to Seven Forums.

If you like, you might see if the method in the tutorial below for permanently delete may work better for you.

Permanently Delete - Add to Context Menu
My System SpecsSystem Spec
Reply

 Context Menu for url files




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
'Rename' gone from context menu for multiple files?
The ability to rename multiple files at once (by selecting all, right clicking them and click rename,) has disappeared from my context menu. I use it often to rename large batches of jpegs. How do I get it back? Thanks.
General Discussion
context menu does not show files under new in explorer. win 7 sp1
If i right click and select new over my desktop all of my file types are there. If i do the same thing in explorer, all i get for new is folder. Why? How to fix? Shellnewhandler shows the file types are selected. thanks
Customization
Context Menu Items Missing - Fix when more than 15 Files are Selected
Restore Missing "Open", "Print", and "Edit" Context Menu Items when more than 15 Files are Selected This will show how to restore the missing Open, Print, and Edit context menu (right click) items for when you have more than 15 files selected in Vista, Windows 7, and Windows 8. This will...
Tutorials
Cannot edit txt files using windows 7 context menu .. .
I get a: "This file does not have a program associated with it for performing this action" whenever i select Edit in windows 7's context menu .. . associating txt files to my notepad "ted notepad" placed in system32 doesn't help .. . & this editing option for txt files is used before...
General Discussion
Show recycled files in context menu?
I would like to have a list of the Recycle Bin's contents in the right-click context menu (of the recycle bin.) I found the registry key for the Recycle Bin's context menu, but I have no idea how to 'reference' the files that are in the bin so as to list them in the menu. I know it's possible...
Customization
Any way to reorder the context menu for files/folders?
I have several context menu options from various programs (WinRAR, 7zip, VLC, Winamp, etc... ) and I'd like to put them in my own order. The order they are in by default seems arbitrary. Any programs or ways to do this?
Customization


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 11:19.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App