943,945 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Marked Solved
  • Views: 31978
  • VB.NET RSS
Jun 13th, 2006
0

time delay during program execution

Expand Post »
I am creating a program that will install multiple programs, because I build new computer quite often. For example "MyInstallProgram" will launch and allow the user to select which programs (MSOffice, Acrobat, WinZip etc.) to install.

When compiling the program, what code can I use that will insert a time delay so that I do not have 5 install programs running and installing all at once.

Is there code that would insert 30 seconds before the next line of code is executed? What would that code look like?


Logic:

If MSOffice checked then,
open c:\windows\msofficesetup.exe

wait 30 seconds

If Acrobat checked then,
open c:\acrobatsetup.exe

wait 30 seconds...

etc.
Similar Threads
Reputation Points: 42
Solved Threads: 1
Light Poster
hoosier23 is offline Offline
25 posts
since Jun 2006
Jun 13th, 2006
0

Re: time delay during program execution

Somthing like.

VB.NET Syntax (Toggle Plain Text)
  1.  
  2. System.Threading.Thread.Sleep(1000) ' Sleep for 1 second

?
Team Colleague
Reputation Points: 84
Solved Threads: 99
<Insert title here>
tayspen is offline Offline
1,542 posts
since Jul 2005
Jun 14th, 2006
0

Re: time delay during program execution

check out this site for how to delay until the process has ended to continue with the next one.
Reputation Points: 84
Solved Threads: 58
Posting Pro in Training
waynespangler is offline Offline
461 posts
since Dec 2002
Jun 14th, 2006
0

Re: time delay during program execution

What site? I think you forgot to post the link .
Team Colleague
Reputation Points: 84
Solved Threads: 99
<Insert title here>
tayspen is offline Offline
1,542 posts
since Jul 2005
Jun 14th, 2006
0

Re: time delay during program execution

Sorry about that.
http://www.devx.com/dotnet/Article/7914/0/page/2
Hope this helps,
Reputation Points: 84
Solved Threads: 58
Posting Pro in Training
waynespangler is offline Offline
461 posts
since Dec 2002
Jun 3rd, 2011
0
Re: time delay during program execution
www.ninite.com does this.
Ninite is a great installer that is very popular.

See the wiki
http://en.wikipedia.org/wiki/Ninite
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Gopher2011 is offline Offline
2 posts
since May 2011

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: how to visible text box?
Next Thread in VB.NET Forum Timeline: Enum Access Issue





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC