The Computer Oracle

How to remove directory context menu added by Visual Studio 2017?

Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Lost Civilization

--

Chapters
00:00 Question
00:37 Accepted answer (Score 44)
01:41 Answer 2 (Score 65)
02:10 Answer 3 (Score 21)
03:12 Answer 4 (Score 9)
03:51 Thank you

--

Full question
https://superuser.com/questions/1178356/...

Question links:
[image]: https://i.stack.imgur.com/Hp9f5.png

Accepted answer links:
[image]: https://i.stack.imgur.com/8ShZO.png
[image]: https://i.stack.imgur.com/c1Wb9.png
[image]: https://i.stack.imgur.com/KeG2w.png

Answer 2 links:
[here]: https://developercommunity.visualstudio....

Answer 3 links:
[From Bryson Gibbons on the Microsoft Forums]: https://developercommunity.visualstudio....

Answer 4 links:
[ShellMenuView]: http://www.nirsoft.net/utils/shell_menu_...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#windows10 #contextmenu #visualstudio #visualstudio2017

#avk47



ANSWER 1

Score 71


This answer is originally from here, and I am just reproducing it here for sake of brevity.

Use the Windows Registry editor to delete two keys:

HKEY_CLASSES_ROOT\Directory\Background\shell\AnyCode
HKEY_CLASSES_ROOT\Directory\shell\AnyCode

You may want to back up your registries before going for a delete operation, just a good practice.




ACCEPTED ANSWER

Score 48


Run regedit.exe, go to HKEY_CLASSES_ROOT\Directory\Background\shell\AnyCode, take ownership of this key, change the permisions for your account and add a DWORD (32Bit) with the name HideBasedOnVelocityId and set the value to 006698a6 (hex):

enter image description here

When you now do a rightclick the entry is gone:

enter image description here

Delete entry or rename it to ShowBasedOnVelocityId to enable the entry again:

enter image description here




ANSWER 3

Score 11


You can use ShellMenuView to find this context menu entry and disable it.

  1. Download the program for your OS (32 or 64 bit) and run the shmnview.exe executable.
  2. Find in the list something that has to do with Visual Basics and seems to be this entry. (You can sort the list by File Type and look on the entries under with file type Directory)
  3. Right-click that entry and select Disable Selected Items.



ANSWER 4

Score 6


Based on the answer by @Blaze:

Instead of searching for keys with the registry editor, just copy this into an empty file with a .reg file extension and execute that file to delete the keys.

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\Directory\Background\shell\AnyCode]
[-HKEY_CLASSES_ROOT\Directory\shell\AnyCode]