Hide cmd

0 Nitin Pathak · June 3, 2014
how to hide cmd in visual basic ? I am trying to build an app which cd to a specific directory in cmd and execute cmd commands in hidden cmd window,but whenever I am starting the app many cmd windows starts and only one is executing the command,I used shell and system.diagnostics.process commands but Having the same problem,Can anyone help me.

Post a Reply


Oldest  Newest  Rating
+1 Mathias Frits Rørvik · June 6, 2014
Executing console commands through a program is a bit of an ugly hack. Of course it is up to you, but if I was you I would look up in the .NET API documentation and see if there was a way of accomplishing the equivalent of the desired commands through library calls.
0 Nitin Pathak · June 28, 2014
Thanks both of you for replying@Philliph Rodgers:I have tried this method...not working...multiple cmd windows appears and only one of them execute code.but btw thanks@Mathias Frits Rørvik:Could you tell me for which library functions should I look?
  • 1

Visual Basic


One of the first products to provide a graphical environment and a paint metaphor for developing user interfaces.

Bucky Roberts Administrator