小编Abd*_*kha的帖子

如何在c#上退出exe进程?

如何在Application Exit或Exit按钮上退出此场景的进程.

namespace test2
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }

        private void MainForm_Load(object sender, EventArgs e)
        {

        }

        private void Startbutton_Click(object sender, EventArgs e)
        {

            ProcessStartInfo startInfo = new ProcessStartInfo("ffmpeg.exe");
            startInfo.WindowStyle = ProcessWindowStyle.Hidden;
            startInfo.Arguments = "-i " + urltext.Text.Trim() + "?fifo_size=1000000 -map 0:p:" + Channeltext.Text.Trim() + " -vcodec copy -acodec copy -f segment -segment_time " + splittimetext.Text.Trim() + " " + filenametext.Text.Trim() + "-%03d.ts";
        System.Diagnostics.Process.Start(startInfo);
        }
}
Run Code Online (Sandbox Code Playgroud)

如何在Application Exit上退出此场景的进程.

c# process

-2
推荐指数
1
解决办法
7255
查看次数

标签 统计

c# ×1

process ×1