Here's a more versatile version:
Code:
#include <windows.h>
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
if (argc != 2) {
cout << "Error. This program requires a single argument in milliseconds to specify \nthe delay interval\nType \"delay.exe delay\", where \"delay\" is in milliseconds";
}
Sleep(atoi(argv[1]));
return 0;
}
DL:
http://dl.getdropbox.com/u/1203786/delay.exeThis version accepts a command line argument (in milliseconds) that specifies the delay period. So if you wanted to delay for 2 seconds instead of 5, the batch file would look like this:
Code:
@echo off
echo HELLO
delay.exe 2000
echo WORLD
pause