Results 1 to 4 of 4

Thread: How to do a pause in cmd vb.net ?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2011
    Posts
    137

    Question How to do a pause in cmd vb.net ?

    Read the cmd line as the windows command prompt.
    How do I set the pause that the program when i open the cmd would not disappear at once but stay as normal cmd ?

    Here's the code that I have so far.

    Code:
    Process.Start("cmd", "/c net localgroup Administrators")

  2. #2
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    Re: How to do a pause in cmd vb.net ?

    Have you read the documentation?

    Starts a new instance of the Windows command interpreter

    CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF]
    [[/S] [/C | /K] string]

    /C Carries out the command specified by string and then terminates <<<<<<<<<<< You are doing this one.....
    /K Carries out the command specified by string but remains

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: How to do a pause in cmd vb.net ?

    Quote Originally Posted by Grimfort View Post
    Have you read the documentation?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jun 2011
    Posts
    137

    Re: How to do a pause in cmd vb.net ?

    Now I realized what a mistake i made.
    Now everything is running normally.

    Thanks for the help.

Tags for this Thread

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