none
c# reading data listed in cmd screen RRS feed

  • Question

  • Hello everyone,

    I am developing a project that I wrote in C#.

    I want to read data listed in cmd screen. There are 20-30 outputs such as Id, Name, Desc.

    In the meantime, I'm listing this data by telnet and running a command.

    I also want to read this data for comparison. How can I do it?

    Monday, January 3, 2022 2:01 PM

All replies

  • Hi, maybe you can use the telnet client in the c# and run the telnet command from the c# apps. Here is the link for the telnet library from codeproject https://www.codeproject.com/Articles/19071/Quick-tool-A-minimalistic-Telnet-library
    • Proposed as answer by Scuba_Duba Friday, March 4, 2022 8:50 AM
    Saturday, February 12, 2022 10:34 AM
  • [url=https://www.recyclepro.co.uk/product-view.php?pid=10&vid=3] sell iphone XR online [/url]  

    Saturday, February 12, 2022 1:38 PM
  • Hello everyone,

    I am developing a project that I wrote in C#.

    I want to read data listed in cmd screen. There are 20-30 outputs such as Id, Name, Desc.

    In the meantime, I'm listing this data by telnet and running a command.

    I also want to read this data for comparison. How can I do it

    Telnet library https://www.codeproject.com/KB/IP/MinimalisticTelnet/MinimalisticTelnet.zip
    Monday, February 21, 2022 12:47 PM
  • Best Mobile Development

    Mobile Game Development Services

    Genieee is one of the best mobile game development companies, our well-experienced designers and developer specialized in developing games for iOS and Android mobile platforms using popular game engines. Genieee provides a complete range of game development services with its planned business unit. With a dedicated team of game developers, concept artists, 2D / 3D artists, testing, and marketing, Genieee assists you in all range of gaming requirements. We know how to develop a completely engaging app that requires 100% commitment and hard work. Our team always ready to accept new challenges to provide the best quality mobile games to our clients all over the world.

    We have expertise in developing games across all genres from engaging casual, social, action, arcade, trivia, strategy, puzzle, educational, MMO, RTS, RPG, MMORPG, table, board and top games for iOS and Android for both phone and tablet. We use Unity, Cocos2D, PlayCanvas, Cocos-JS, Maya, Max, Photoshop, and many other industry-leading tools to create the best games and beast experiences and games, apps for Mobile AR and VR platforms.

    https://genieee.com/mobile-game-development-company.html

    Wednesday, August 24, 2022 11:41 AM
  • If the DataReader returns multiple result sets, call the NextResult method to iterate through the result sets sequentially. The following example shows the SqlDataReader processing the results of two SELECT statements using the ExecuteReader method.

    C#

    Copy
    static void RetrieveMultipleResults(SqlConnection connection)
    {
        using (connection)
        {
            SqlCommand command = new SqlCommand(
              "SELECT CategoryID, CategoryName FROM dbo.Categories;" +
              "SELECT EmployeeID, LastName FROM dbo.Employees",
              connection);
            connection.Open();

            SqlDataReader reader = command.ExecuteReader();

            while (reader.HasRows)
            {
                Console.WriteLine("\t{0}\t{1}", reader.GetName(0),
                    reader.GetName(1));

                while (reader.Read())
                {
                    Console.WriteLine("\t{0}\t{1}", reader.GetInt32(0),
                        reader.GetString(1));
                }
                reader.NextResult();
            }
        }
    }

    This may help you,

    Rachel Gomez

    Friday, November 11, 2022 6:15 AM