简体   繁体   中英

How do you run a cygwin-compiled program from windows c# (visual studio)?

HI,

I would like to run a cygwin compiled program in visual studio using c#

Thanks :)

L

BTW:

            System.Diagnostics.Process MyProcess = new System.Diagnostics.Process();
            MyProcess.StartInfo.UseShellExecute = false;

            MyProcess.StartInfo.FileName = "C:\\cygwin\\Cygwin.bat";
            MyProcess.StartInfo.CreateNoWindow = true;
            MyProcess.Start();

This is the code I've tried so far, I have no idea how to make it run the cygwin compiled program tho (AGFL's EP4IR is the targeted program to run)

Thanks

Just like any other program. Are you running any concrete well-known program or your own?

Also, see this related question here on StackOverflow: Executing a Cygwin process from .NET

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM