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/
Xem thêm Bài Viết:
- Đọc ngay hướng dẫn cài twrp Recovery hiệu quả trên thiết bị Android
- Bỏ túi cách thêm IDM vào Chrome tiện lợi không phải ai cũng biết
- Bỏ túi thông tin hướng dẫn sử dụng adb fastboot zenfone 5 flash Asus
- Hướng dẫn cài đặt và sử dụng Adobe Audition 1.5 chi tiết nhất
- Khắc phục lỗi ‘adb’ is not recognized as an internal or external command
thanks a lot
Thankyou, this was perfect for me as I needed to launch a file with arguments both before and after teh executable
Thanks worked
This works like a CHARM ! thanks a lot savior 😀
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
two parameters? For example: ipconfig /all. ipconfig=first parameter and /all= second parameter
Thanks man, you are the best
Thanks now i can make trojan but it will most likely be detected by my antivirus lol
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
It works ! Thank you for the code 😀
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
is this windows form or is it console? cuz this code is not working at all!!!!!!!!!!!
tks
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();