You could write a vb program to sleep for 10 seconds, and call it from the batch file. Don't know of any time commands in a batch file. You could have the batch file wait for another process to finish, though.
To do what dglienna suggested start a new standard EXE project. Remove the standard Form and add a BAS module instead. Change the startup object of the project to Sub Main and add the following code to the module.
VB Code:
Private Declare Sub Sleep Lib "kernel32.dll" (ByVal dwMilliseconds As Long)
I think that MSGBOX might be a bad choice - as if this runs in a .BAT file on a server, for instance, that will pop-up on a screen not being watched...
Maybe some kind of PRINT statement to the console? Not sure how that works though...
*** Read the sticky in the DB forum about how to get your question answered quickly!! ***
Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".
I think that MSGBOX might be a bad choice - as if this runs in a .BAT file on a server, for instance, that will pop-up on a screen not being watched...
Well, the MsgBox will only appear if you don't pass the interval the app should wait before it exits so if it appears you haven't debugged your BAT file before you put it on the server. But attached is a C program that does exactly the same thing as my above VB code except that it's a console app.