Close batch script 5 seconds after last command?

Hi  currently have the following batch script runnign on log-on:
(see code)

I want to be able to pause the window for a set of time before it closes after the log-on sequence. Is this possible? Will I have to call in another type of script?

For example, I want the window to close about 5 seconds after "Logon Complete!!" - just enough time to display the message to users.


title Logging you on to the domain
@echo off
mode con:cols=80 lines=60
echo ******************************************************
echo Please Wait....                                    
ECHO Personal Settings Are being Applied to %username%  
ECHO You are currently connected to %computername%      
echo ******************************************************
echo Identifying and connecting your network drives
call \\server\netlogon\mapdrives.bat
echo Downloading your desktop icons.....
echo Downloading your Internet Favourites.....
echo Logon Complete!!

Open in new window

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

you can add a command in the last line where you need a wait.
sleep 5
thats what i would use on my batch files to give a pause of specified time.
  sleep.exe is not available by default and is a part of the resource tools
you need to download from the
Just to add the command is
      sleep      time-to-sleep-in-seconds

-- popularbhaskar
Easiest way without installing extra software is just to ping localhost
ping -n 10 > nul

Open in new window

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
Windows Batch

From novice to tech pro — start learning today.