Regedit

1. How to add "share this folder" to contextmenu?
i Tried net share foldername="%1"
I don't know how to get the folder name and set it as the share name of folder on network automatically?

2. Check the below vbs code:

Hidden = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden"
Set Sh = WScript.CreateObject("WScript.Shell")
St = Sh.RegRead(Hidden)
If St = 2 Then
Sh.RegWrite Hidden, 1, "REG_DWORD"
Else
Sh.RegWrite Hidden, 2, "REG_DWORD"
End If
Sh.SendKeys("{F5}")

It toggles show\hide folders and files. When I run it in a directory, I have to right click and select refresh, then files are shown\hidden.
Sh.SendKeys("{F5}") refreshes the desktop, not the directory.
What is the Refresh command in contexmenu? So I can add it in the vbs code

3. How to add open folder location to shortcuts without using 3rd party tools?

4. Is there anyway to add option\command to desktop contexmenu?

I don't want to use 3rd party app if possible
 
Back
Top