[Batch File]Time based actions

Last update on October 20, 2009 08:12 AM by aakai1056
Published by aakai1056

[Batch File]Time based actions





Issue


Upon creating a batch file you want that certain line of batch file is executed after every second (not all the program only certain line). In VB we can do it using the Timer setting , but how to implement this in batch file.

Solution


@echo off
<your first command>
ping 127.0.0.1 -n 2 -w 1000>nul 2>nul
<your second command>
ping 127.0.0.1 -n 2 -w 1000>nul 2>nul
<your third command>
[...]


Thanks to Benoit for this tip.
Best answers for « Time based actions » in :
Basic Excel Formulas ShowBasic Excel Formulas Below are some basic formulas for Microsoft excel: Basic formula : ADDITION cell A1 to A10 = sum (A1: A10) AVERAGE cell A1 to A10 = average (A1: A10) MAXIMUM cell A1 to A10 = max (A1: A10) MINIMUM...
[Bash]Parameters Show[Bash]Parameters Intro Example 1 Example 2 Initialize parameters Examples Example 3 Intro You can provide a script on the command line and arguments also known as parameters for its implementation. There are two categories of...
Basic MS-Dos commands ShowBasic MS-Dos commands Intro The command prompts: Intro Here is a list of basic commands that you can use in a DOS prompt (e.g. a using a boot disk). To have additional information about these commands, type /? after entering the...
Download Autorun Action Menu ShowAutorun Action Menu is a tool to create autorun menu for CD-ROM. When the CD is read for the first time, a menu button appears on the corner of the screen. The menu button is the command where you can assign images. Advantage The program offers...
Ethernet ShowIntroduction to Ethernet Ethernet (also known as IEEE 802.3 standard) is a data transmission standard for local area networks based on the following principle: All machines on an Ethernet network are connected to the same communication line, made...
DBMS models ShowThe various database models Databases appeared in the late 1960s, at a time when the need for a flexible information management system had arisen. There are five models of DBMS, which are distinguished based on how they represent the data...
Base64 encoding ShowBase64 encoding The concept of Base64 encoding entails using US-ASCII (non-accented) characters to encode any sort of data in 8-bit form. Email protocols were originally designed to send messages in plain text only. But as email systems vary...