Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Does anyone know how to run the command prompt using vb.net.

 

Like say, running the vbc using a code in the program.

 

or do i need to run the command line or can i just run the compiler straight without using the command prompt.

 

whats the process of running and app with vb.net code?

 

thanks

Posted

       Dim strPath As String = AppDomain.CurrentDomain.SetupInformation.ApplicationBase
           Dim prosTestMode As New Process
           With prosTestMode
               .StartInfo.FileName = strPath & "Test.exe"
               .StartInfo.CreateNoWindow = False
               .Start()
               .WaitForExit()
           End With

 

This is the way I run a program instead of using the shell command.

There is more to the Process as well. On Process hit F1 for help and there is more to it like attributes if you need to use them.

Live as if you were to die tomorrow. Learn as if you were to live forever.
Gandhi

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...