ur00361883
New member
- Local time
- 11:01 AM
- Messages
- 1
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
And I solved the problem for Shortcut files adding below registry also.
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.
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 Computer
- Computer type
- PC/Desktop
- Computer Manufacturer/Model Number
- HP
- OS
- Windows 7 Ultimate x64
- CPU
- HP
- Motherboard
- HP
- Memory
- 8
- Browser
- chrome