"%ProgramFiles%\WinRAR\Rar.exe" a -x*\FOLDER_TO_EXCLUDE "RESULT_NAME.rar" .\FOLDER_TO_INCLUDE
@ECHO off
SETLOCAL| /* | |
| * @Author Raymond Pittman | |
| * @Github: https://github.com/raymondpittman | |
| * @Note: Added README.md https://gist.github.com/raymondpittman/11cc82788422d1bddfaa62e60e5ec9aa | |
| */ | |
| /* | |
| * @params | |
| * @download: http://.zip | |
| * @filename: ./downloaded.zip |
| Windows Registry Editor Version 5.00 | |
| ;Remove 'Give access to' Context Menu in Windows 10 | |
| [-HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\Sharing] | |
| [-HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\ModernSharing] | |
| [-HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\Sharing] | |
| [-HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers\Sharing] | |
| [-HKEY_CLASSES_ROOT\Directory\shellex\CopyHookHandlers\Sharing] | |
| [-HKEY_CLASSES_ROOT\Directory\shellex\PropertySheetHandlers\Sharing] | |
| [-HKEY_CLASSES_ROOT\Drive\shellex\ContextMenuHandlers\Sharing] |
| ### | |
| ### | |
| ### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
| ### https://christitus.com/windows-tool/ | |
| ### https://github.com/ChrisTitusTech/winutil | |
| ### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
| ### iwr -useb https://christitus.com/win | iex | |
| ### | |
| ### OR take a look at | |
| ### https://github.com/HotCakeX/Harden-Windows-Security |
| function sec2time(timeInSeconds) { | |
| var pad = function(num, size) { return ('000' + num).slice(size * -1); }, | |
| time = parseFloat(timeInSeconds).toFixed(3), | |
| hours = Math.floor(time / 60 / 60), | |
| minutes = Math.floor(time / 60) % 60, | |
| seconds = Math.floor(time - minutes * 60), | |
| milliseconds = time.slice(-3); | |
| return pad(hours, 2) + ':' + pad(minutes, 2) + ':' + pad(seconds, 2) + ',' + pad(milliseconds, 3); | |
| } |
| <?php | |
| /** | |
| * | |
| * Gmail attachment extractor. | |
| * | |
| * Downloads attachments from Gmail and saves it to a file. | |
| * Uses PHP IMAP extension, so make sure it is enabled in your php.ini, | |
| * extension=php_imap.dll |