| | The password must not contain spaces.
|
Examples
hf.exe /ADD /HL C:\Test - hide and lock C:\Test
hf.exe /ADD /H "C:\My Folder\123" - hide C:\My Folder\123
hf.exe /ADD /L "C:\Test Folder" - lock C:\Test Folder
hf.exe /ADD /RO C:\Test\* - make the contents of C:\Test read only
hf.exe /ADD /NOX C:\Test\ - prevent EXE files in the C:\Test folder from running
hf.exe /REMOVE C:\Test - remove C:\Test from the list
hf.exe /OFF Password - disable protection
hf.exe /ON - enable protection
checking protection status
checkstatus.cmd:
@echo off
hf.exe /status
if errorlevel 1 goto disabled
echo PROTECTION ENABLED
goto end
:disabled
echo PROTECTION DISABLED
:end
|