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 | |
:Top | |
Certutil -deleterow 8/31/2010 Request | |
If %ERRORLEVEL% EQU -939523027 goto Top |
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
IF %errorlevel% neq 0 (exit /b %errorlevel%) ELSE (exit /b 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
@echo off | |
setlocal enabledelayedexpansion | |
set S=%1 | |
set I=0 | |
set L=-1 | |
:l | |
if "!S:~%I%,1!"=="" goto ld | |
if "!S:~%I%,1!"=="_" set L=%I% | |
set /a I+=1 | |
goto l |
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
for /f "skip=1" %%x in ('wmic os get localdatetime') do if not defined MyDate set MyDate=%%x | |
ECHO %MyDate% | |
set today=%MyDate:~0,4%-%MyDate:~4,2%-%MyDate:~6,2% | |
ECHO %today% | |
pause |
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 | |
:: This batch file will create an HTML Application (HTA). | |
:: Values entered in the HTA will be saved as %TEMP%\USERIN.BAT | |
:: After the USERIN.BAT is CALLed from the main batch | |
:: (and assuming there is enough room in the environment) | |
:: environmental variables USERNAME and PASSWORD will be set. | |
:: It is your responsibility to delete the USERIN.BAT | |
:: after you CALL it. Because this batch file needs to | |
:: find itself, you must be sure to call it from your | |
:: main batch file with a full path and file name. |
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
set file=%1 | |
FOR %%i IN ("%file%") DO ( | |
ECHO filedrive=%%~di | |
ECHO filepath=%%~pi | |
ECHO filename=%%~ni | |
ECHO fileextension=%%~xi | |
) |