run command prompt commands from within a C# application

run command prompt commands from within a C# application

my-portfolio

run command prompt commands from within a C# application ————- May be you like this ————– Our channel: Interest to donate : RavenDB playlist here: KnockoutJs Playlist: Wcf playlist : Wcf restful playlist : Angularjs playlist : c# playlist: google maps playlist: umbraco playlist : jquery playlist : Nguồn:https://hdwallpaperslovely.com/

Cách Pha Bột BÁNH BÈO Có Xoáy Má Lúm Đồng Tiền Không Hôi Bột By Duyen's Kitchen | Ghiền Nấu Ăn
Bà bầu có ăn được vú sữa không? | Bà bầu cần biết | Sức khỏe mẹ bầu
Cách sử dụng băng vệ sinh có cánh đúng cách



run command prompt commands from within a C# application
————-
May be you like this
————–
Our channel:

Interest to donate :

RavenDB playlist here:
KnockoutJs Playlist:

Wcf playlist :

Wcf restful playlist :

Angularjs playlist :

c# playlist:

google maps playlist:

umbraco playlist :

jquery playlist :

Nguồn:https://hdwallpaperslovely.com/

COMMENTS

WORDPRESS: 14
  • comment-avatar

    thanks a lot

  • comment-avatar

    Thankyou, this was perfect for me as I needed to launch a file with arguments both before and after teh executable

  • comment-avatar
  • comment-avatar

    This works like a CHARM ! thanks a lot savior 😀

  • comment-avatar

    I got error like ->> System.InvalidOperationException: 'Cannot read keys when either application does not have a console or when console input has been redirected from a file. Try Console.Read.'

    any solution please

  • comment-avatar

    two parameters? For example: ipconfig /all. ipconfig=first parameter and /all= second parameter

  • comment-avatar

    Thanks man, you are the best

  • comment-avatar

    Thanks now i can make trojan but it will most likely be detected by my antivirus lol

  • comment-avatar

    thanks for the inputs but its not working for my code.
    i have one .exe file so i gave Filename as total path for .exe
    standardInput.WriteLine("*"); i am giving in the place of *.
    my problem is i am getting the value after running the exe not the value after running the command.
    hope u understand my prblm..
    will wait for ur reply

  • comment-avatar

    It works ! Thank you for the code 😀

  • comment-avatar

    wow this really sucks so bad u need to stop writting code we cant even barely understand you and u have way to much code in this there are so many ways to do this without all that code and it dont even work u need to give up

    SHITTY CODE

  • comment-avatar

    is this windows form or is it console? cuz this code is not working at all!!!!!!!!!!!

  • comment-avatar
  • comment-avatar

    i tried this but it didnt work….
    Process process = new Process();
    process.StartInfo.FileName = "cmd.exe";
    process.StartInfo.CreateNoWindow = true;
    process.StartInfo.RedirectStandardInput = true;
    process.StartInfo.RedirectStandardOutput = true;
    process.StartInfo.UseShellExecute = false;
    process.Start();
    process.StandardInput.WriteLine("ipconfig");
    process.StandardInput.Flush();
    process.StandardInput.Close();
    process.WaitForExit();
    Console.ReadKey();

  • DISQUS: