MS-DOS??

How can i create a program that can open up a MS-DOS program within a window Thanks.



Answer this question

MS-DOS??

  • npiacentine

    So this is how I would structure the program

    --------------------------------------

    Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    Process.Start("Program.exe")

    End Sub

    End Class

    ---------------------------------------

    Thanks.



  • mail2amar

     

    "would it contain the MS-DOS program in the window that the source code originates"

    No.

    "would it open it outside of the window"

    Yes.

     

    "and into a full-screen mode ""

    Default MS-Dos Window size.

    It may just flash at you unless the program has a read issued to the user.

    It should open in the default size that all other windows open.

    The startinfo structure described by spotty, has another property System.Diagnostics.ProcessStartInfo.WindowStyle which can set the window to maximized,minimized, normal or not visible.

     


     

     



  • Gustavo Holloway

    that would work.


  • Chuff

    Process.start is definately the class to use to start a application. In you case a DOS application.

    For more info
    Process.Start
    http://msdn2.microsoft.com/en-us/library/0w4h05yb.aspx

    This method allows you to provide a command line argument by specifying a second parameter. Often useful as many DOS application allow the applications startup/configuration setting to be configured when calling the application.


  • Brannon

    Process.Start("Program.exe")

  • John Wesley Harding

    Now doing that, would it contain the MS-DOS program in the window that the source code originates, or would it open it outside of the window and into a full-screen mode Thanks.


  • MS-DOS??