This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: by JaCk | Release 01/22/2019 | https://gist.github.com/1ijack/e095d3b15e133b50db692a857d92961b | wmic_localTime.cmd -- Query wmic for OS Localtime | |
:: based on https://ss64.com/nt/syntax-gmt.html | |
@call :func_wmic_localTime bam | |
@if defined bam @echo/%bam% | |
@set "bam=" | |
@exit /b | |
:func_wmic_localTime | |
@set "#tA=%~1" | |
@if not defined #tA (@goto:eof) else @set "#tA=" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -------------------------------------------------- # | |
#### jxe ~ Custom Changes #### | |
# - --- - # | |
#- -- --- ---- ----- ------ ------- -------- --------- | |
# ~ Basic Settings | |
# ---------------------------------------------------- | |
# - Name - - Value - Notes | |
# ---------------------------------------------------- | |
--idle=yes # Allow Idle, do not close |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: by JaCk (script struture/functions only) | Release 09/04/2018 | url https://gist.github.com/1ijack/bd5ed0da9bcaebb2a14e3698cefe7a49 | disable_multicast.cmd -- change DNSClient/LLMNR behavior [enable/disable/restoreDefault] using windows registry. Restart maybe required for the settings to take effect. | |
:: Original source -- https://computerstepbystep.com/turn-off-multicast-name-resolution.html#CMD | |
@goto:argParser | |
rem - JaCkd Note: this seems backwards, but per site instructions: Enable = 0; Disable = 1 | |
rem ~ Posted on [unknown] at url [https://computerstepbystep.com/turn-off-multicast-name-resolution.html#PowerShellScript] | |
rem *Description*: Local Link Multicast Name Resolution (LLMNR) is a secondary name resolution protocol. Queries are sent over the Local Link, a single subnet, from a client machine using Multicast to which another client on the same link, which also has LLMNR enabled, can respond. LLMNR provides name resolution in scenarios in which conventional DNS name resolution is not p |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem - Name: PrettyDebug | |
rem - Description: Removes Prompt settings for easier visiblity/debug of batch files | |
rem - srcURL: jxeHead -- https://gist.github.com/1ijack/e741ab130a8a389cf09d870c440f0edd | |
rem Add to script or run the next line to archive/clear prompt settings and turn echo on | |
(((@echo on) &if defined prompt set "restore{prompt}=%prompt%") &set "prompt=$") & rem debug pretty print | |
rem Add to script or run the next line to restore prompt settings and turn echo off | |
@(((echo off) &if defined restore{prompt} set "prompt=%restore{prompt}%") &set "restore{prompt}=") & rem tnirp ytterp gubed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
High School/Jr.High | |
10 PRINT "HELLO WORLD" | |
20 END | |
First year in College | |
program Hello(input, output) | |
begin | |
writeln('Hello World') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* (C) 2003-2006 Gabest | |
* (C) 2006-2013 see Authors.txt | |
* | |
* This file is part of MPC-HC. | |
* | |
* MPC-HC is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation; either version 3 of the License, or | |
* (at your option) any later version. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@rem :: by Jack | Release 08/01/2018 | https://gist.github.com/1ijack/bed4a28947265789eadd7c397b597215 | helpGen.cmd -- generates a help msg list of all valid net helpmsg command IDs. Contains both interactive console commands and can be called as a batch-file | |
@if exist "%~f0" goto :batMeh | |
@rem Interactive console command to list all valid net help messages | |
@(for /l %A in (1,1,10000) do @for /f "delims=" %B in ('net helpmsg %A') do @echo/net helpmsg %A: %B) 2>nul | |
:batMeh Batch file command to list all valid net help messages | |
@(for /l %%A in (1,1,10000) do @for /f "delims=" %%B in ('net helpmsg %%A') do @echo/net helpmsg %%A: %%B) 2>nul | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo off | |
cls | |
echo [-] Flash Player Remover for Windows 10 with Edge Browser. | |
takeown /f C:\Windows\SysWOW64\Macromed\Flash\*.* | |
takeown /f C:\Windows\System32\Macromed\Flash\*.* | |
cacls C:\Windows\SysWOW64\Macromed\Flash\*.* /E /T /G %UserDomain%\%UserName%:F | |
cacls C:\Windows\System32\Macromed\Flash\*.* /E /T /G %UserDomain%\%UserName%:F |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: by JaCk | Release 08/01/2018 | https://gist.github.com/1ijack/52383383af6abc7aba47e98bce1a93e8 | dump_batch_labels.bat -- A Quick Example script using an internal function to dump all the scripts call/goto labels | |
@if exist "%~f0" call :dump_batch_labels "%~f0" | |
@goto :eof | |
:: Usage :: dump_batch_labels "path\myBatchfile.cmd" "D:\path\myBatchfile.bat" | |
@rem Displays all call/goto/function labels found in a [batch] file except self-function-name OR manually excluded in function below | |
:dump_batch_labels | |
@if "%~1" equ "" goto :eof | |
@( dir /b /a %1 ) 2>nul 1>nul && @for /f "tokens=1*" %%A in ('%SystemRoot%\System32\findstr.exe /rv "\<[:]exclusionFilter\> \<\%~0\> \<findstr\> \<rem\> \<[:][:]\>" "%~1" ') do @echo/%%A|"%SystemRoot%\System32\findstr.exe" /ri "^:[^:].*\> \<.[^::]:" | |
@shift /1 &@goto %~0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem - author: JaCk [https://github.com/1ijack] | |
rem - Name: FileSizeTimeArray.cmd | |
rem - Description: --- To be Run interactive command line only --- | |
rem - Description: Generate a variable Array of all the files size+time+path+name, while printing any duplicates | |
rem - Description: varName syntax - "file{bytes[YYYYMMDDhhmmssPA]}=bytes|YYYYMMDDhhmmssPA|F:\ull\path\filename.extension" | |
rem - srcURL: jxeHead | |
rem - srcURL: https://gist.github.com/1ijack/cb727c6951d88d105e256fd1675bdb96 | |
rem clear list | |
@for /f "tokens=1 delims==" %F in ('set file{') do @set "%F=" |