StartInfo. WorkingDirectory="e: \ \ Input. TXT";
StartInfo. The Arguments="- b - p ane3fl - i. e: \ \ Input. TXT - o d: \ \ Output dat";//start parameters - b to run the program, said the background - p - iInput. MAC said input file filename, - oOutput. Dat said of the output file filename
//startInfo WindowStyle=System. Diagnostics. ProcessWindowStyle. Maximized;
StartInfo. WindowStyle=ProcessWindowStyle. Hidden;
StartInfo. FileName="D: \ \ \ \ \ \ ANSYS 18.0 ANSYS Inc v180 \ \ bin \ \ \ \ ANSYS winx64 \ \ the launcher exe";
The Process proAnsys=Process. Start (startInfo);
If (proAnsys!=null)
{
ProAnsys. WaitForExit ();
}
But don't run, and modify the work path of ANSYS, startInfo. WorkingDirectory="e: \ \ Input. TXT"; This sentence seems useless,
CodePudding user response:
Work should be a directory path, e: \ \ Input TXT it looks like a fileCodePudding user response:
Remove the. TXT and have a look