Dim startInfo As New ProcessStartInfo("IExplore.exe")
startInfo.WindowStyle = ProcessWindowStyle.Hidden
Process.Start(startInfo)
"Lynn" <Marr...@yah00.c0m> schreef in bericht
news:%232Emp4S...@TK2MSFTNGP09.phx.gbl...
So for the benefit of others at least, note that answers have been provided
previously and any answers provided here might be duplicates.
"Lynn" <moley...@yahoo.com.au> wrote in message
news:1142251874.2...@z34g2000cwc.googlegroups.com...
"Sam Hobbs" <sam...@social.rr.com_change_social_to_socal> wrote in message
news:ekzr06p...@TK2MSFTNGP10.phx.gbl...
Dim p As New Process()
p.StartInfo.FileName = "IExplore.exe"
p.StartInfo.WindowStyle = ProcessWindowStyle.Normal 'or
ProcessWindowStyle.Hidden
p.Start() 'start the process
'System.Threading.Thread.Sleep(1000) 'wait 1 second = 1000 ms
'p.WaitForExit() 'start waiting for IEXPLORE.exe to quit.
'p.Kill() ' kill / stop the progress
That are some usefull commands for you.
Look, you knew it was something with "waitforexit"
google --> VB.NET + waitforexit --> click on first hit.
See ? you could find it by yourself...
"Lynn" <Marr...@yah00.c0m> schreef in bericht
news:OCsyD2qR...@TK2MSFTNGP11.phx.gbl...
> you don't learn by asking how you have to do something.
> You learn something to buy and read / learn the book / research on the
> internet ( like google )
> and ofcourse a lot of MSDN.
Well said.
> Dim p As New Process()
> p.StartInfo.FileName = "IExplore.exe"
> p.StartInfo.WindowStyle = ProcessWindowStyle.Normal 'or
> ProcessWindowStyle.Hidden
> p.Start() 'start the process
> 'System.Threading.Thread.Sleep(1000) 'wait 1 second = 1000 ms
> 'p.WaitForExit() 'start waiting for IEXPLORE.exe to quit.
> 'p.Kill() ' kill / stop the progress
>
> That are some usefull commands for you.
Interesting, but is this WMI?
--
Gerry Hickman (London UK)
"Gerry Hickman" <gerry...@yahoo.co.uk> wrote in message
news:uvynzN7R...@TK2MSFTNGP12.phx.gbl...
hangs = CPU 100% load ?
hangs = cant push button , ... ?
"Lynn" <Marr...@yah00.c0m> schreef in bericht
news:ODYyK$BSGH...@TK2MSFTNGP12.phx.gbl...
Shell("C:\Program Files\Internet Explorer\iexplore.exe",
AppWinStyle.NormalFocus, True)
this will also "hang"
when you says, wait for return .... it waits ( and don't repaint himself )
So actually it doesn't hang..
Why do you have to wait to end that program internet explorer ?
Maybe If you explain what you want to do I can help you...
"Lynn" <moley...@yahoo.com.au> schreef in bericht
news:1142429052....@u72g2000cwu.googlegroups.com...
"Lynn" <Marr...@yah00.c0m> schreef in bericht
news:%232Emp4S...@TK2MSFTNGP09.phx.gbl...
I am not familiar with VB.Net, so I can't help with that. Your original
question asks how to use:
Process.Start("C:\file.exe")
I don't know if that is WMI but if not then you should ask in a VB.Net
newsgroup or whatever newsgroup is most relevant to "Process.Start". I don't
understand how a "DOS Window" is relevant. Perhaps the program is not
actually a DOS program and the window is not a DOS window. People often call
"console" or "command prompt" programs and windows DOS programs and windows
and the solutions for each are usually different.
I think it would have helped if you had shown more code or at least
specified what "Process" in "Process.Start" is. There are many ways to do
what you need to do and the solution probably depends on many details that
you have not provided. Probably you don't need WMI and whether you do or do
not, you need to describe better what it is that you need to do. Discussions
will always grow large without providing answers if the problem is not
described well enough.
"Lynn" <Marr...@yah00.c0m> wrote in message
news:OCsyD2qR...@TK2MSFTNGP11.phx.gbl...
This is a situation where someone is guessing and replies as if it is not a
guess. It is not normal for a window to not get repainted in the manner that
Lynn describes.
Actually a Windows program should repaint a window when needed without
requiring an occurance of a maximize / minimze / resize / move. Lynn's
program is probably not processing messages. I don't know what should be
used in a VB.Net program to process messages but in VB 6 the DoEvents
function or statement is commonly used to process messages.
"Sam Hobbs" <sam...@social.rr.com_change_social_to_socal> schreef in bericht
news:OyrJlAIS...@TK2MSFTNGP14.phx.gbl...
"newbie" <as...@aswin.be> wrote in message
news:441ac6ab$0$29451$ba62...@news.skynet.be...
Interprocess Communications
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipc/base/interprocess_communications.asp
About Synchronization
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/about_synchronization.asp
"newbie" <as...@aswin.be> wrote in message
news:441ac5f3$0$16257$ba62...@news.skynet.be...
"Sam Hobbs" <sam...@social.rr.com_change_social_to_socal> schreef in bericht
news:%23J8jS1G...@TK2MSFTNGP10.phx.gbl...