Jump to content

Rightclick Any file --->Hide/Unhide


Ibrahim
 Share

Recommended Posts

#NoTrayIcon
RegWrite("HKEY_CLASSES_ROOT\*\shell\Hide\command",'', 'REG_SZ', '"' & @ScriptFullPath & '" "%1"')
RegWrite("HKEY_CLASSES_ROOT\*\shell\Hide",'','REG_SZ',"Hide\UnHide")
$State=FileGetAttrib($CmdLine[1])
$ishidden=StringInStr($State,"h",0)
if $ishidden=0 then FileSetAttrib($CmdLine[1],"+H")
if $ishidden >0 then FileSetAttrib($CmdLine[1],"-H")

Easiest way to set files attributes as Hidden

Hope u like it rather simple and cute and any modifications are happily wanted

Link to comment
Share on other sites

#NoTrayIcon
RegWrite("HKEY_CLASSES_ROOT\*\shell\Hide\command",'', 'REG_SZ', '"' & @ScriptFullPath & '" "%1"')
RegWrite("HKEY_CLASSES_ROOT\*\shell\Hide",'','REG_SZ',"Hide\UnHide")
$State=FileGetAttrib($CmdLine[1])
$ishidden=StringInStr($State,"h",0)
if $ishidden=0 then FileSetAttrib($CmdLine[1],"+H")
if $ishidden >0 then FileSetAttrib($CmdLine[1],"-H")

Easiest way to set files attributes as Hidden

Hope u like it rather simple and cute and any modifications are happily wanted

Might be worth adding a note that this needs to be compiled to work on all systems.

Then you need to run the exe once just set the registry values and in this case there will be no parameters and you will get errors, and once the values are written there is no need to write them again so maybe you could have this

#NoTrayIcon

If $Cmdline[0] = '' Then
    RegWrite("HKEY_CLASSES_ROOT\*\shell\Hide\command", '', 'REG_SZ', '"' & @ScriptFullPath & '" "%1"')
    RegWrite("HKEY_CLASSES_ROOT\*\shell\Hide", '', 'REG_SZ', "Hide\UnHide")
    MsgBox(0,"Success","'Hide/UnHide' option has been added to the file context menu")
    Exit
EndIf

$State = FileGetAttrib($Cmdline[1])
$ishidden = StringInStr($State, "h", 0)
If $ishidden = 0 Then FileSetAttrib($Cmdline[1], "+H")
If $ishidden > 0 Then FileSetAttrib($Cmdline[1], "-H")
Edited by martin
Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...