C
Cooz
Hi everyone,
I have the following code (see my Run a DOS command line to examine RAR
contents-question below):
Dim myProcess As New Process()
With myProcess
With .StartInfo
.FileName = "cmd"
.Arguments = "/c " & thePath & "\unrar.exe lb -p" & psw & " " &
rarFile & " > " & _
thePath & "\raroutput.txt"
.CreateNoWindow = True
End With
.Start()
.WaitForExit()
.Dispose()
End With
which does exactly what it should, except that it flashes the command
prompt-window. Since I use this code in a loop, users that are prone to
migraine should stay away from my application. Which is a pity.
Why does "CreateNoWindow = True" not do what it promises? What can I do keep
the command prompt window hidden?
Thank you,
Cooz
I use VB 2005.
I have the following code (see my Run a DOS command line to examine RAR
contents-question below):
Dim myProcess As New Process()
With myProcess
With .StartInfo
.FileName = "cmd"
.Arguments = "/c " & thePath & "\unrar.exe lb -p" & psw & " " &
rarFile & " > " & _
thePath & "\raroutput.txt"
.CreateNoWindow = True
End With
.Start()
.WaitForExit()
.Dispose()
End With
which does exactly what it should, except that it flashes the command
prompt-window. Since I use this code in a loop, users that are prone to
migraine should stay away from my application. Which is a pity.
Why does "CreateNoWindow = True" not do what it promises? What can I do keep
the command prompt window hidden?
Thank you,
Cooz
I use VB 2005.