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

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

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.

[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.

Please help me on this.

My System SpecsSystem Spec
14 Jul 2015   #2

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

 Context Menu for url files

Thread Tools

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
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...
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?

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 01:53.
Twitter Facebook Google+