Temporarily increase environment while running a batch file.
Specify a maximum of 32000 bytes with the /E switch.
COMMAND/E:24000/CTEST.BAT
A timed delay (wait/sleep) which can not be interfered with from the keyboard.
:: Substitute 5 with the desired number of seconds, up to 99.
TYPE nul |CHOICE.COM /N /CY /TY,5 >nul
Timed delay w/o pipe.
CHOICE.COM/N/CY/TY,5
CHOICE.COM/N/CY/TY,5
Timed delay with Ctrl+C and Ctrl+Break disabled.
@ECHO off
CTTY nul
TYPE nul |CHOICE.COM /N /CY /TY,5
CTTY con
Produce a constant alarm (beeping).
CHOICE.COM /N <>nul
CHOICE.COM /N /CY /TY >nul
GOTO start
Create a 0 byte file.
TYPE nul >filename
Exit a batch at a designated place.
This method is used for testing and outputs a "Label not found" message which can be useful as confirmation the batch has quit at the designated place and also as a reminder if you forget to remove the bogus GOTO. Makes no disk writes.
GOTO bogus (non-existent label)
Exit a batch w/o error message using a 0 byte file.
This method writes a temporary 0 byte file which remains on the drive.
TYPE nul >%temp%.\batexit.bat
%temp%.\batexit
Exit a batch file w/o error message or orphaned file.
This method does not leave a 0 byte file behind, but uses pipes so it writes to %temp% or current. This trick courtesy of Laura Fairhead, http://lf.8k.com/.
CTTY NUL |GOTO |CTTY CON |CALL ECHO ON
Online Forex Trading Introduction
17 years ago


No comments:
Post a Comment