Creating a Wait command for a batch file.

I found the below article on another site (Link provided at the bottom of my post) Essentially it talks about creating a wait command however when I follow the directions it says that " "CHOICE" is not a recognized internal or external command, operable program or batch file. " and will not wait the number of seconds that I need.  Any help would be greatly appreciated.

-------- THE BELOW WAS FOUND ON: http://malektips.com/dos0017.html ----------

SUMMARY: Make your batch files wait for a specified number of seconds before continuing. Works in DOS and Windows.

Do you need a batch file that waits a certain amount of seconds? In some languages, the command would be WAIT, but DOS and Windows do not come with this command for batch files. If you want to implement the WAIT command, create the following batch file and name it WAIT.BAT.

@CHOICE /T:N,%1% >  NUL

Now, in order to wait 10 seconds in a batch file, just call the WAIT.BAT batch file as follows:

CALL WAIT 10

-------------------------------------------- BREAK ---------------------------------------------
LVL 1
gideonnAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dufo G. BelskiRetired bureaucrat/desktop supportCommented:
The rest of the article: However, if you are running Windows NT, Windows 2000, or Windows XP, you can use the following WAIT.BAT, as the CHOICE command is not included in the default install:

@ping 127.0.0.1 -n 2 -w 1000
@ping 127.0.0.1 -n %1% -w 1000

The reason for the two lines is that in order to wait using the PING command, you must add extra pings to correctly wait the desired number of seconds. Also, since the PING command is being used, it is possible that this WAIT batch file may run over a few milliseconds. Thus, it is not recommended to use this for critical real-time processing.
0
Dufo G. BelskiRetired bureaucrat/desktop supportCommented:
Choice.exe is available in the NT, 2000, and, presumably XP, resource kits.
0
sirbountyCommented:
What operating system are you using?
asyscokid has a viable work around for you, but if you're looking for choice.com - simply copy it from an older system or download the supplement that includes this command here: http://support.microsoft.com/?kbid=117600

Alternatively, you may be interested in sleep.exe
Download it here: http://www.computerhope.com/dutil.htm
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft DOS

From novice to tech pro — start learning today.