Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Open and Write in Console window

Open and Write in Console window

Scheduled Pinned Locked Moved C#
csharphelp
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    harvid
    wrote on last edited by
    #1

    Hi all, I have developed C#.net Windows Application and I've to open and write in Console window thru my Windows application. Pls help me to resolve this issue. Thx in Advance Vidhya

    R 1 Reply Last reply
    0
    • H harvid

      Hi all, I have developed C#.net Windows Application and I've to open and write in Console window thru my Windows application. Pls help me to resolve this issue. Thx in Advance Vidhya

      R Offline
      R Offline
      rah_sin
      wrote on last edited by
      #2

      try System.Diagnostics.Process.Start("cmd.exe);

      rahul

      H 1 Reply Last reply
      0
      • R rah_sin

        try System.Diagnostics.Process.Start("cmd.exe);

        rahul

        H Offline
        H Offline
        harvid
        wrote on last edited by
        #3

        Hi Rahul.. I tried . Thx... But i need to write into Console window thru Win exe Code also Could u pls help Vidhya -- modified at 6:15 Thursday 8th March, 2007

        L 1 Reply Last reply
        0
        • H harvid

          Hi Rahul.. I tried . Thx... But i need to write into Console window thru Win exe Code also Could u pls help Vidhya -- modified at 6:15 Thursday 8th March, 2007

          L Offline
          L Offline
          laddie 0
          wrote on last edited by
          #4

          Hi The easy way is start your windows project as a console application. To do this go to Project\properties\Common properties\General Change the value Output Type from Windows Application to Console Application. Now run the project. You will see that a console window will be opened fist which then launches the windows application what ever you write using Console.WriteLine will now appear on the Console window. Please let me know if this helps Neo

          H 1 Reply Last reply
          0
          • L laddie 0

            Hi The easy way is start your windows project as a console application. To do this go to Project\properties\Common properties\General Change the value Output Type from Windows Application to Console Application. Now run the project. You will see that a console window will be opened fist which then launches the windows application what ever you write using Console.WriteLine will now appear on the Console window. Please let me know if this helps Neo

            H Offline
            H Offline
            harvid
            wrote on last edited by
            #5

            Hi Neo, Thx a lot for timely help .. It works fine... :) Vidhya

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups