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
Dir |
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
[code:]bat[:code] | |
@echo off | |
:begin | |
set /p id="Enter: " | |
echo yours input: %id% |
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
https://www.fosshub.com/ConEmu.html | |
ConEmu |
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
<pre> | |
rd %TEMP% /s /q | |
</pre> |
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
Оператор условного выполнения команд в пакетном файле. | |
IF [NOT] ERRORLEVEL число команда | |
IF [NOT] строка1==строка2 команда | |
IF [NOT] EXIST имя_файла команда | |
NOT Обращает истинность условия: истинное условие | |
становится ложным, а ложное - истинным. | |
ERRORLEVEL число Условие является истинным, если код возврата последней |
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 | |
rem скрипт запускает ssis пакет для обновления таблицы | |
echo [%date%-%time%]-[start]-[ssis_e_ingredients_oracle.dtsx] >> "%~dp0\ssis_e_ingredients_oaracle.log" | |
dtexec /f "E:\ssis\solution\test\ssis_e_ingredients_oracle.dtsx" | |
echo [%date%-%time%]-[end]-[ssis_e_ingredients_oracle.dtsx]-[error_level - %ERRORLEVEL%] >> "%~dp0\ssis_e_ingredients_oaracle.log" |
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
rem Строка просто открывает окно нового сообщения: | |
"C:\Program Files (x86)\Mozilla Thunderbird"\thunderbird.exe -compose to="email", subject="test" ,body="body" ,attachment="" |
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 %~dp0 |
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 /A MIN=13 | |
set /A MAX=17 | |
set /A SEED=%RANDOM% | |
set /A SEED_MIN_MAX=%MIN%+%SEED%-(%SEED%/(%MAX%-%MIN%+1))*(%MAX%-%MIN%+1) | |
echo %SEED_MIN_MAX% |
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
rem http://forum.oszone.net/thread-200208.html | |
@Echo Off | |
SetLocal EnableDelayedExpansion | |
For /F "delims=" %%N In ('Dir "%~dp0\highlight" /B /L /O:N') Do (Set Names=!Names! %%N) | |
If "%Names:~,1%"==" " Set Names=%Names:~1% | |
Echo %Names% | |
Pause |