I would like to password-encrypt folders (and ideally also files — individual and multiple ones) pre-selected in the Windows 10 file explorer via the context menu. Unfortunately I couldn't find any program capable of it. If by chance you know one please do tell, that would be the perfect solution.

Otherwise, [this tool](https://www.2brightsparks.com/onclick/help/) is the closest to the described requirements that I could find. However, it requires to navigate to the desired folder manually via their own navigation window, so it doesn't work just by right clicking a folder in the Windows file explorer. But I have an idea for a workaround: that tool supports the CMD command line so that a folder could be encrypted like so:

```
"C:\Program Files (x86)\EncryptOnClick\EncryptOnClick.exe" -p password -e "C:\Users\username\Documents\Test" 

```

If I could make `password` and the `Test`-folder dynamic variables and store the CMD-command or make it a batch-, AHK-, VBscript-, Powershell- or whatever script I could attach that script to the [registry key HKEY\_CLASSES\_ROOT\Directory\shell key as described here](https://www.howtogeek.com/107965/how-to-add-any-application-shortcut-to-windows-explorers-context-menu/), right, and it would appear in the context menu upon right-clicking a folder in the file explorer.

But how do I make `password` (and I should be prompted to input one of my choice) and the `Test`-folder (which I already right-clicked in the file explorer) dynamic variables and store that whole thing as a script that I can attach to HKEY\_CLASSES\_ROOT\Directory\shell, so that the script appears in the context menu?

Many thanks in advance!