Sign in to follow this  
Followers 0
Ibrahim

Rightclick Any file --->Hide/Unhide

5 posts in this topic

#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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

#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.

Share this post


Link to post
Share on other sites

Thanks! :)


Console Browse: Navigate on the WEB in a textual consoleMultiPing!: Show computer on the lan and/or show the local/remote task, ALL animated!KillaWin: Event executingCryptPage: Crypt your webpage and show only with key

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  
Followers 0