This file contains 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 | |
setlocal EnableExtensions | |
:: Example Usage | |
call :RAND CHA | |
echo %CHA% | |
endlocal | |
pause >nul | |
exit /b |
This file contains 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 | |
setlocal EnableExtensions | |
for %%A in (*.url) do ( | |
for /f "usebackq tokens=1,* delims==" %%X in ("%%~fA") do ( | |
if /i "%%X"=="Url" ( | |
echo(%%~nA = %%Y>>list.txt | |
echo(%%Y | |
) | |
) | |
) |
This file contains 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
:: Hide Commands. | |
@echo off | |
title Network Connect | |
:: Disconnect Current Connections. | |
if exist Disconnect.bat call Disconnect.bat | |
:: Get User Credentials. | |
set /p xUsername=^> Please Enter Your Username: | |
::set "xPassword=" |
This file contains 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 | |
setlocal EnableDelayedExpansion | |
if "%~1"==":::" goto :spinnerThread | |
:menuLoop | |
<nul set /p menu=Select menu[1 or 2]= | |
call :GetKey | |
echo( | |
echo Pressed '!key!' | |
if !key!==1 call :menu1 |
This file contains 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
cd "C:\Program Files (x86)\Git\git-cheetah" | |
regsvr32 -s -u git_shell_ext64.dll | |
:: http://alensiljak.blogspot.com/2012/09/remove-git-explorer-extensions-cheetah.html |
This file contains 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
################# | |
## Eclipse | |
################# | |
*.pydevproject | |
.project | |
.metadata | |
bin/ | |
tmp/ | |
*.tmp |
This file contains 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 | |
set str=TEST | |
set string1=%str:~0,2% | |
echo %string1% | |
CALL :strLen string1 len | |
echo Length is %len% | |
pause |
This file contains 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
Something like this should work. It will loop through each .mf file and append all of its contents into big.one skipping the date on all but the first file. | |
:: Does not work since x will only expanded once and skip=0 is invalid. | |
setlocal EnableExtensions | |
set "x=0" | |
for %%A in (*.mf) do ( | |
for /f "usebackq skip=%x% delims=" %%B in ("%%~fA") do ( | |
echo(%%B>>big.one | |
) |
This file contains 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 | |
setlocal EnableExtensions EnableDelayedExpansion | |
:: Setup | |
set "ResultsFolder=results" | |
set "ExportFile=output.txt" | |
:: Verify that the Results folder exists | |
if not exist "%ResultsFolder%\*" md "%ResultsFolder%" | |
set "OutputFile=%ResultsFolder%\%ExportFile%" |
This file contains 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 | |
setlocal enabledelayedexpansion | |
set /a _er=0 | |
set /a _n=0 | |
set _ln=%~4 | |
goto init | |
:howuse --------------------------------------------------------------- |