Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# execute shell command

System.Diagnostics.ProcessStartInfo process = new System.Diagnostics.ProcessStartInfo();
process.UseShellExecute = false;
process.WorkingDirectory = worikng_path;
process.FileName = command;
process.Arguments = command_arguments;
process.RedirectStandardOutput = true;

System.Diagnostics.Process cmd =  System.Diagnostics.Process.Start(process);
// waiting to complete 
cmd.WaitForExit();
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# clear all textboxes 
Csharp :: c# decimal vs double 
Csharp :: c# insert spaces before capital letters 
Csharp :: sorting a list of objects in c# 
Csharp :: c# remove rows from datatable 
Csharp :: calling stored procedure in c# entity framework 
Csharp :: new ienumerable 
Csharp :: how to set picturebox width with form width in c# 
Csharp :: relaycommand 
Csharp :: c# radio button checked 
Csharp :: c# print decimal with zero at the end 
Csharp :: get color of pixel c# 
Csharp :: getter setter c# 
Csharp :: unity 2d 
Csharp :: .net core web app get dll name 
Csharp :: How to make game object transparent in unity 
Csharp :: what is reflection in programming 
Csharp :: unity c# struct 
Csharp :: modulus program 
Csharp :: c# how to set string list 
Csharp :: c# Program for Sum of the digits of a given number 
Csharp :: how get the user show mvc controller core 3.1 
Csharp :: how to add to a list only items that are not already in the list c# 
Csharp :: ray casting unity 
Csharp :: how to get rid of the slashes in datetime variables c# 
Csharp :: unity detect a touch on ui element 
Csharp :: replace multiple characters in string c# 
Csharp :: order 3 integers in c# 
Csharp :: rigidbody.addforce not working 
Csharp :: how to uncheck a radio button in c# 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =