Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding a 15 second pause in a VB Script 1

Status
Not open for further replies.

DrSeussFreak

Programmer
Feb 16, 2007
149
US
I am running a script, and between steps
Code:
Dim lStart
Set lStart=createobject("wscript.shell")
lStart.run "D:\dba_util\scripts\listener_start.bat"
set lStart=Nothing
and
Code:
Dim lCheck
Set lCheck=createobject("wscript.shell")
lCheck.run "D:\dba_util\scripts\listener_check.bat"
set lCheck=nothing
I need a 15 second pause.
 
WScript.Sleep 15000 ' pause for 15 seconds

Or if you want your script to wait

lStart.run "D:\dba_util\scripts\listener_start.bat", 0, True
' 0 hides the DOS window; True tells it to wait before proceeding.

--------------------------------------------------------------------------------
dm4ever
My philosophy: K.I.S.S - Keep It Simple Stupid
 
yeah, why are you waiting? are you going off to make a cup of coffee?
 
no, I am starting/stopping/restarting/checking oracle services. They can take some time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top