Restarter

Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
6 posts Page 1 of 1
Contributors
User avatar
NeedHelp
Member
Member
Posts: 42
Joined: Fri Feb 19, 2010 3:57 pm

Restarter
NeedHelp
How can i make a application restarter, like this:

You select a program [c:/] And when that application is closed the program opens it and when its open it does nothing...
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: Restarter
mandai
Code: Select all
While True
        Dim myList As Process() = Process.GetProcessesByName("something.exe")
        If myList.Count < 1 Then
            Process.Start("something.exe")
        End If
        Threading.Thread.Sleep(100)
End While
User avatar
NeedHelp
Member
Member
Posts: 42
Joined: Fri Feb 19, 2010 3:57 pm

Re: Restarter
NeedHelp
That code crashed my pc -.-

It opens 100000 of a program !!
NoWayIn
VIP - Donator
VIP - Donator
Posts: 444
Joined: Sat Nov 21, 2009 11:16 pm

Re: Restarter
NoWayIn
Well Im not sure what you're asking...
but to restart your application you would just do
Application Restart wrote:
Application.Restart()
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: Restarter
mandai
It will only start more than 1 of the program if your program is hiding itself from the processes list.
User avatar
NeedHelp
Member
Member
Posts: 42
Joined: Fri Feb 19, 2010 3:57 pm

Re: Restarter
NeedHelp
I want a program that starts another program and when you check [checkbox1]Restart if Crashes then it opens the program when its off...

http://www.mediafire.com/?mzhzjmjqewm
6 posts Page 1 of 1
Return to “Tutorial Requests”