Note that some other file managers and search engines can listen the content of this folder. It is only "super hidden" and not encrypted. With Linux Live CD or with BartPE you can find the folder and get full access.
Compile it with "quasi system" file name (svchost.exe or other) - it makes the process more "stealth" in the Process Manager (but not really invisible).
#NoTrayIcon #SingleInstance force #Persistent ; Null the choice of viewing of super hidden files from folder view RegWrite, REG_DWORD, HKEY_LOCAL_MACHINE, SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\SuperHidden, UncheckedValue, 0 ; Don't show hidden files and folders RegWrite, REG_DWORD, HKEY_CURRENT_USER, SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced, Hidden, 2 ; Hide protected operating system files RegWrite, REG_DWORD, HKEY_CURRENT_USER, SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced, ShowSuperHidden, 0 ; Don't use simple file sharing RegWrite, REG_DWORD, HKEY_LOCAL_MACHINE, SYSTEM\CurrentControlSet\Control\Lsa, forceguest, 0 ; Complex long path (it is too simply now, make it more complex) Path = %A_WinDir%\System32 LockedFolderName = %Path%\Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D} UnlockedFolderName = %Path%\System ; Run once to create super hidden folder IfNotExist, %LockedFolderName% { IfNotExist, %UnlockedFolderName% { FileCreateDir, %UnlockedFolderName% FileSetAttrib, +RASH, %UnlockedFolderName%, 2 ; +RASH makes the folder "super hidden" Gosub, Unlock } } OnExit, ExitSub ; Complex hotkey Hotkey, #+^!h, Trigger Return Trigger: IfExist, %UnlockedFolderName% Gosub, Lock Else Gosub, Unlock Return Unlock: FileMoveDir, %LockedFolderName%, %UnlockedFolderName% ; Maping as a drive H: to easy access CommandIn = /c subst h: "%UnlockedFolderName%" RunWait, %comspec% %CommandIn%, , hide, UseErrorLevel If ErrorLevel <> ERROR MsgBox, 64, System message, Access granted, 2 Return Lock: ; Removing of mapped drive CommandIn = /c subst h: /d RunWait, %comspec% %CommandIn%, , hide, UseErrorLevel If ErrorLevel <> ERROR { FileMoveDir, %UnlockedFolderName%, %LockedFolderName% MsgBox, 64, System message, Connection terminated, 2 } Return ExitSub: Gosub, Lock ExitApp