Jump to content
Sign in to follow this  
zelles

Show/Hide "Super hidden" files and folders

Recommended Posts

zelles

This is not just "hidden" files and folders, but "super hidden" files and folders.

By default "super hidden" files and folders are set not to be displayed, even when "hidden" files are set to be displayed.

With these 4 functions you can super hide and unhide files and folders as well as set the system to show or hide these items.

;  About:
;    This is not just hidden files and folders, but "super hidden"
;    files and folders. By default super hidden files and folders 
;    are set not to be displayed, even when hidden files are set to 
;    be displayed. With this you can super hide and unhide files and 
;    folders as well as set the system to show or hide these items.
;
;  Super hide file or folder:
;    _FileHide("C:\Users\Top Secret")
;
;  Unhide super hidden file or folder:
;    _FileShow("C:\Users\Top Secret")
;
;  Set system to show super hidden files:
;    _FileSuperHiddenShow()
;
;  Set system to hide super hidden files:
;    _FileSuperHiddenHide()
;

Func _FileHide($f_path)
    FileSetAttrib($f_path,"+SH")
EndFunc

Func _FileShow($f_path)
    FileSetAttrib($f_path,"-SH")
EndFunc

Func _FileSuperHiddenShow()
    RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "SuperHidden", "REG_DWORD", "0x000001")
EndFunc

Func _FileSuperHiddenHide()
    RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "SuperHidden", "REG_DWORD", "0x000000")
EndFunc
Edited by zelles

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.