careca Posted December 27, 2012 Share Posted December 27, 2012 Hi, glad you sorted it out. Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
telmob Posted December 27, 2012 Author Share Posted December 27, 2012 (edited) Quase! (almost!) So... this is the 'small' context menu code.: expandcollapse popupif stringinstr(@OSArch,"64") then $hklm="HKLM64" else $hklm="HKEY_LOCAL_MACHINE" endif RegContext() Sleep(10000) UnregContext() Func RegContext() RegWrite("HKEY_CLASSES_ROOT\Directory\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\Directory\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add folder to allow list") RegWrite("HKEY_CLASSES_ROOT\Directory\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\exefile\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\exefile\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\exefile\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\comfile\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\comfile\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\comfile\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.A6P\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.A6P\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.A6P\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.AC\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.AC\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.AC\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.AS\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.AS\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.AS\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.ACR\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.ACR\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.ACR\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.ACTION\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.ACTION\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.ACTION\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.AIR\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.AIR\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.AIR\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.AWK\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.AWK\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.AWK\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.CGI\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.CGI\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.CGI\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.CSH\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.CSH\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.CSH\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.DEK\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.DEK\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.DEK\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.DLD\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.DLD\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.DLD\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.DS\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.DS\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.DS\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.EBM\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.EBM\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.EBM\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.ESH\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.ESH\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.ESH\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.EZS\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.EZS\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.EZS\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.FKY\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.FKY\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.FKY\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.FRS\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.FRS\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.FRS\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.FXP\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.FXP\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.FXP\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.GADGET\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.GADGET\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.GADGET\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.HMS\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.HMS\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.HMS\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.ICD\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.ICD\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.ICD\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.INX\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.INX\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.INX\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.IPF\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.IPF\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.IPF\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.ISU\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.ISU\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.ISU\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.JAR\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.JAR\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.JAR\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.JS\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.JS\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.JS\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.JSE\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.JSE\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.JSE\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.JSX\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.JSX\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.JSX\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.KIX\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.KIX\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.KIX\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.LUA\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.LUA\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.LUA\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.MCR\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.MCR\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.MCR\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.MEM\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.MEM\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.MEM\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.MPX\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.MPX\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.MPX\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.MS\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.MS\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.MS\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.OBS\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.OBS\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.OBS\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.PAF\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.PAF\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.PAF\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.PEX\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.PEX\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.PEX\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.PRC\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.PRC\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.PRC\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.PRG\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.PRG\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.PRG\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.PVD\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.PVD\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.PVD\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.PWC\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.PWC\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.PWC\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.PY\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.PY\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.PY\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.PYC\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.PYC\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.PYC\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.PYO\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.PYO\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.PYO\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.QPX\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.QPX\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.QPX\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.RBX\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.RBX\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.RBX\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.RGS\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.RGS\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.RGS\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.ROX\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.ROX\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.ROX\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.RPJ\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.RPJ\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.RPJ\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.SCAR\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.SCAR\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.SCAR\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.SCRIPT\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.SCRIPT\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.SCRIPT\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.SCT\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.SCT\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.SCT\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.SHB\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.SHB\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.SHB\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.SPR\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.SPR\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.SPR\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.TLB\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.TLB\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.TLB\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.TMS\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.TMS\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.TMS\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.U3P\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.U3P\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.U3P\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.UDF\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.UDF\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.UDF\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.VBE\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.VBE\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.VBE\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.VBS\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.VBS\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.VBS\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.VBSCRIPT\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.VBSCRIPT\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.VBSCRIPT\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.WCM\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.WCM\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.WCM\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.WPK\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.WPK\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.WPK\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.WS\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.WS\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.WS\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.WSF\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.WSF\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.WSF\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.XQT\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.XQT\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.XQT\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.AUT\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.AUT\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.AUT\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.AU3\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.AU3\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.AU3\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.A3X\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.A3X\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.A3X\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.ADE\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.ADE\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.ADE\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.ADP\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.ADP\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.ADP\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.BAS\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.BAS\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.BAS\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.BAT\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.BAT\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.BAT\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.CHM\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.CHM\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.CHM\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.CMD\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.CMD\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.CMD\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.CPL\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.CPL\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.CPL\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.CRT\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.CRT\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.CRT\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.HLP\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.HLP\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.HLP\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.HTA\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.HTA\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.HTA\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.INF\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.INF\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.INF\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.INS\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.INS\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.INS\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.ISP\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.ISP\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.ISP\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.MDB\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.MDB\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.MDB\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.MDE\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.MDE\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.MDE\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.MSC\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.MSC\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.MSC\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.MSI\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.MSI\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.MSI\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.MSP\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.MSP\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.MSP\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.MST\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.MST\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.MST\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.OCX\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.OCX\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.OCX\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.PCD\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.PCD\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.PCD\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.PIF\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.PIF\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.PIF\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.REG\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.REG\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.REG\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.SCR\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.SCR\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.SCR\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.SHS\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.SHS\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.SHS\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.URL\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.URL\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.URL\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.VB\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.VB\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.VB\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite("HKEY_CLASSES_ROOT\.WSC\shell\SRP Enforcer", "MUIVerb", "REG_SZ", "SRP Enforcer") RegWrite("HKEY_CLASSES_ROOT\.WSC\shell\SRP Enforcer", "SubCommands", "REG_SZ", "Add to allow list;Add to block list") RegWrite("HKEY_CLASSES_ROOT\.WSC\shell\SRP Enforcer", "icon", "REG_SZ", @ScriptDir & "\Graphics\Protected.ico") RegWrite($hklm & "\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Add folder to allow list", "", "REG_SZ", "Add folder to allow list") RegWrite($hklm & "\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Add folder to allow list", "Icon", "REG_SZ", @ScriptDir & "\Graphics\Allowed.ico") RegWrite($hklm & "\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Add to allow list", "", "REG_SZ", "Add to allow list") RegWrite($hklm & "\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Add to allow list", "Icon", "REG_SZ", @ScriptDir & "\Graphics\Allowed.ico") RegWrite($hklm & "\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Add to allow list\command", "", "REG_SZ", "Someexe.exe") RegWrite($hklm & "\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Add to block list", "", "REG_SZ", "Add to block list") RegWrite($hklm & "\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Add to block list", "Icon", "REG_SZ", @ScriptDir & "\Graphics\Blocked.ico") RegWrite($hklm & "\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Add to block list\command", "", "REG_SZ", "Someexe.exe") EndFunc Func UnregContext() RegDelete("HKEY_CLASSES_ROOT\Directory\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\exefile\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\comfile\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.A6P\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.AC\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.AS\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.ACR\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.ACTION\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.AIR\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.AWK\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.CGI\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.CSH\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.DEK\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.DLD\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.DS\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.EBM\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.ESH\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.EZS\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.FKY\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.FRS\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.FXP\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.GADGET\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.HMS\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.ICD\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.INX\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.IPF\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.ISU\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.JAR\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.JS\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.JSE\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.JSX\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.KIX\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.LUA\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.MCR\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.MEM\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.MPX\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.MS\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.OBS\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.PAF\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.PEX\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.PRC\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.PRG\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.PVD\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.PWC\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.PY\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.PYC\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.PYO\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.QPX\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.RBX\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.RGS\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.ROX\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.RPJ\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.SCAR\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.SCRIPT\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.SCT\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.SHB\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.SPR\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.TLB\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.TMS\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.U3P\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.UDF\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.VBE\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.VBS\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.VBSCRIPT\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.WCM\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.WPK\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.WS\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.WSF\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.XQT\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.AUT\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.AU3\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.A3X\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.ADE\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.ADP\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.BAS\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.BAT\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.CHM\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.CMD\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.CPL\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.CRT\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.HLP\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.HTA\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.INF\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.INS\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.ISP\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.MDB\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.MDE\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.MSC\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.MSI\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.MSP\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.MST\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.OCX\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.PCD\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.PIF\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.REG\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.SCR\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.SHS\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.URL\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.VB\shell\SRP Enforcer") RegDelete("HKEY_CLASSES_ROOT\.WSC\shell\SRP Enforcer") RegDelete($hklm & "\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Add folder to allow list") RegDelete($hklm & "\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Add to allow list") RegDelete($hklm & "\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Add to block list") EndFunc It really doesn't matter how big it is. My recent problem is that i need to use $CMDLine to start the application (my script) to perform specific tasks for the selected file/folder, but..... if i select multiples files or folders... how can i add multiple options to the end result? For example... when i click on a exe file, and select the option in the context menu, the following command will be issued: RegWrite($hklm & "\SOFTWARE\Policies\Microsoft\Windows\Safer\CodeIdentifiers\" & $nLevel & "\Paths\" & $thisGUID,"ItemData",$dType,$thisPath) But how can i do this with multiple (selected) files or folders? OR Can i prevent the selection of multiple files/folders for opening the context menu options i want? (this would be my preffered option) Edited December 27, 2012 by telmob Link to comment Share on other sites More sharing options...
careca Posted December 27, 2012 Share Posted December 27, 2012 Hi, not sure i understand what you need, so you're saying that when multiple files are selected, the code doesn't run on all selected ones? Im confused, "prevent the selection of multiple files/folders for opening the context menu options i want?", what do you mean? Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
telmob Posted December 27, 2012 Author Share Posted December 27, 2012 To simplify, is there a way to perform tasks for every file or folder selected? Link to comment Share on other sites More sharing options...
careca Posted December 28, 2012 Share Posted December 28, 2012 I think there is, using %1 you state that the command is going to be executed on the selected file. Example: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\Open with VLC] "Icon"="C:\\VLC 1.1.11\\vlc.exe" [HKEY_CLASSES_ROOT\*\shell\Open with VLC\command] @="C:\\VLC 1.1.11\\vlc.exe %1" Entendido? Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
telmob Posted December 28, 2012 Author Share Posted December 28, 2012 Yes, i know that. The problem is how do i extract the files/folders names/paths to my script so i can use them, to associate with actions? Link to comment Share on other sites More sharing options...
careca Posted December 29, 2012 Share Posted December 29, 2012 (edited) With the files selected... Send("^c") $file = ClipGet() ;MsgBox(64, '', $file) Retrieves files with respective paths. To execute commands on each of them i would use a loop to go through the list of files. _RecFileListToArray helped me when i needed to list lots of files...now it depends on what you need. Edited December 29, 2012 by careca Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
telmob Posted December 29, 2012 Author Share Posted December 29, 2012 From context? Link to comment Share on other sites More sharing options...
careca Posted December 29, 2012 Share Posted December 29, 2012 Yes. put the code in a context menu item and it should retrieve files and paths. As i said b4, youll have to work it out a bit to execute commands on all selected ones. Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe 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