run in hidden mode when calling a .bat file?

I call .bat file from my vb.net application.But I dont know How do I

get the cmd prompt to run in hidden mode when calling a .bat file? help

me please...

[157 byte] By [alya] at [2007-12-24]
# 1

if I understand what you are asking, you wish to hide the command window. If so, try this:

Dim theProcessStartInfo as new ProcessStartInfo("filename.bat")

theProcessStartInfo.CreateNoWindow = true

theProcessStartInfo.WindowStyle = ProcessWindowStyle.Hidden

Process.Start(theProcessStartInfo)

does this work for you? is this what you are after?

ahmedilyas at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic Language...