Results 1 to 2 of 2

Thread: Keeping cmd window displayed after runing System.Diagnostics.Process.Start("cmd.exe",

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2006
    Posts
    589

    Keeping cmd window displayed after runing System.Diagnostics.Process.Start("cmd.exe",

    Hi I run the gacutil cmd in a C# project using

    System.Diagnostics.Process.Start("cmd.exe", " gacutil commad string here");But I want my cmd prompt black window to stay displayed in order to see the results of my code while it s runing or whie the gacutil command finishes runing.

    If that s not possibke, how do i get the result whether my cmd succeded or not.

    Thanks a lot.
    Thanks a lot for your help.

  2. #2
    Fanatic Member popskie's Avatar
    Join Date
    Jul 2005
    Location
    In my chair
    Posts
    666

    Re: Keeping cmd window displayed after runing System.Diagnostics.Process.Start("cmd.exe",

    Just try this ... System.Console.ReadLine();

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width