hi there
Is it possible to call opensees.exe from a console application , written in C#.NET, and pass a *.tcl (and/or *.txt or any source) file to it as an arguments?
EDIT:
I mean something like TclEditor does.
regards.
Calling OpenSees.exe from another application
Moderators: silvia, selimgunay, Moderators
Re: Calling OpenSees.exe from another application
yes .. not really an OpenSees question .. but what follows was taken from
http://stackoverflow.com/questions/3173 ... rp-program
System.Diagnostics.Process pProcess = new System.Diagnostics.Process();
pProcess.StartInfo.FileName = @"C:\Users\Vitor\ConsoleApplication1.exe";
pProcess.StartInfo.Arguments = "olaa"; //argument
pProcess.StartInfo.UseShellExecute = false;
pProcess.StartInfo.RedirectStandardOutput = true;
pProcess.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
pProcess.StartInfo.CreateNoWindow = true; //not diplay a windows
pProcess.Start();
string output = pProcess.StandardOutput.ReadToEnd(); //The output result
pProcess.WaitForExit();
http://stackoverflow.com/questions/3173 ... rp-program
System.Diagnostics.Process pProcess = new System.Diagnostics.Process();
pProcess.StartInfo.FileName = @"C:\Users\Vitor\ConsoleApplication1.exe";
pProcess.StartInfo.Arguments = "olaa"; //argument
pProcess.StartInfo.UseShellExecute = false;
pProcess.StartInfo.RedirectStandardOutput = true;
pProcess.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
pProcess.StartInfo.CreateNoWindow = true; //not diplay a windows
pProcess.Start();
string output = pProcess.StandardOutput.ReadToEnd(); //The output result
pProcess.WaitForExit();
Re: Calling OpenSees.exe from another application
Thank you for your response.
I figured out that I have to use a batch file too.
I figured out that I have to use a batch file too.