How to run cmd.exe in a silent mode

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I'd like to run a cmd.exe in a silent mode (without the windows interface). Any body knows?

Thansk in advance
 
Hi Li,

Therefore you can use when process is p
p.WindowStyle = ProcessWindowStyle.Hidden
When not look than also to
p.StartInfo.CreateNoWindow = True
I hope this helps?

Cor

"> I'd like to run a cmd.exe in a silent mode (without the windows
interface). Any body knows?
 
Hi Li,

You are now using the method without all the paramaters from the process.
Try it with
p.StartInfo.FileName = "cmd.exe"

p.Start()

However I assume not cmd

Cor
 
Back
Top