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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pause while running NotesScript

Status
Not open for further replies.

callcentreman

Technical User
Sep 7, 2001
10
NL
Hi I'm looking for a way to pause script in a button from running while a large database is being detached and unzipped. Only afterwards the script may go to step 2. Who has any suggestions?
 
I hope you don't hate me for coming up with something so simple...

You can achieve this with a simple DIR statement.
Here's an example:
Code:
Dim d As String
d = Dir("C:\TESTDOC.txt", 0)
While d = ""
     d = Dir("C:\TESTDOC.txt", 0)
Wend
Msgbox "DONE!"

When you run this, the script will stay in an endless loop (unless you CTRL-BREAK it) and will just sit there waiting for that file to exist.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top