Ibrahim Posted February 12, 2008 Share Posted February 12, 2008 #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 [font="Arial Black"]My Stuff[/font]UPnP Port Forwarding Final.GateWay InformationThe GateWay Watcher(detect speeofing)Rightclick Any file --->Hide/UnhideThe Tip WatcherA PanelShare WatcherThe Arp WatcherThe Online License Checker Link to comment Share on other sites More sharing options...
martin Posted February 12, 2008 Share Posted February 12, 2008 (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 wantedMight 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 February 12, 2008 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 More sharing options...
Ibrahim Posted February 12, 2008 Author Share Posted February 12, 2008 thanks martin ur comment is bretty usefull ! [font="Arial Black"]My Stuff[/font]UPnP Port Forwarding Final.GateWay InformationThe GateWay Watcher(detect speeofing)Rightclick Any file --->Hide/UnhideThe Tip WatcherA PanelShare WatcherThe Arp WatcherThe Online License Checker Link to comment Share on other sites More sharing options...
Cyber Posted February 15, 2008 Share Posted February 15, 2008 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 Link to comment Share on other sites More sharing options...
James Posted February 15, 2008 Share Posted February 15, 2008 Useful! I think I will add some more options if I can find any Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now