commit 19f1f4c2c3826347fbf099d5c7371c54c67548e0
Author: editor <@51Aspx.com>
Date: Thu Jun 13 09:58:47 2024 +0800
初始化
diff --git a/51Aspx源码必读.txt b/51Aspx源码必读.txt
new file mode 100644
index 0000000..733aab0
--- /dev/null
+++ b/51Aspx源码必读.txt
@@ -0,0 +1,81 @@
+一闪一闪的,在WINFORM中同步BAT脚本的处理信息
+
+
+ 一、源码描述
+
+
+ 一闪一闪的,在winform中同步bat脚本的处理信息
+
+
+ 环境:VS2022 Winform Ffmpeg
+
+
+
+
+
+ 二、功能介绍
+
+
+ 运行前,先下载Ffmpeg。
+
+
+ 运行后,输入框显示bat脚本:for %f in (*.mp4) do D:\faith\ffmpeg\bin\ffmpeg.exe -i "%f" "%~nf.flv"
+
+
+ 点击btnClick按钮,会在多行文本框中同步bat脚本的输出信息。
+
+
+
+
+
+ 1、使用生产者消费者模式接受与输出数据。
+
+
+ 2、正确使用Thread.Sleep()调整收发数据。
+
+
+
+
+
+ 处理后的视频文件和可执行文件放一起。
+
+
+ 所有跟新都是线程安全的。
+
+
+ btn1按钮是调试的时候用的,现在没用了。
+
+
+
+
+
+ 三、注意事项
+
+
+ ctrl+F5运行即可。
+
+
+
+
+
+
+作者: coderbest
+
+如需获得该源码的视频、更新等更多资料请访问: https://www.51aspx.com/Code/ScriptProcessing
+------------------------------------------------------------------------------------------------
+
+ 源码服务专家
+ 官网: https://www.51aspx.com
+ 讨论圈: https://club.51aspx.com/
+
+平台声明:
+
+1.51Aspx平台上提供下载的资源为免费、共享、商业三类源码,其中免费和共享源码仅供个人学习和研究使用,商业源码请在相应的授权许可条件下使用;
+2.51Aspx平台对提供下载的软件及其它资源不拥有任何权利,其版权归属源码合法拥有者所有;
+3.著作权人发现本网站载有侵害其合法权益的内容或作品,请与我们联系( 登录官网与客服反馈或发送邮件到support@51Aspx.com );
+4.51Aspx平台不保证提供的下载资源的准确性、安全性和完整性;
+
+友情提示:
+ 一般数据库文件默认在 DB_51Aspx 文件夹下
+ 默认账号密码一般均为51Aspx
+ 关于源码使用常见问题及解决方案,请参阅: https://www.51aspx.com/Help
diff --git a/App.config b/App.config
new file mode 100644
index 0000000..996fd1e
--- /dev/null
+++ b/App.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
diff --git a/ExecBatFfmpeg.csproj b/ExecBatFfmpeg.csproj
new file mode 100644
index 0000000..0995110
--- /dev/null
+++ b/ExecBatFfmpeg.csproj
@@ -0,0 +1,15 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {2B897E52-5D6E-4C1F-9321-CFCA514CB04E}
+ Exe
+ ExecBatFfmpeg
+ ExecBatFfmpeg
+ v4.8
+ 512
+ true
+ true
+
diff --git a/Form1.Designer.cs b/Form1.Designer.cs
new file mode 100644
index 0000000..ae59264
--- /dev/null
+++ b/Form1.Designer.cs
@@ -0,0 +1,15 @@
+namespace ExecBatFfmpeg
+{
+ partial class Form1
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
diff --git a/Form1.cs b/Form1.cs
new file mode 100644
index 0000000..90b6cd0
--- /dev/null
+++ b/Form1.cs
@@ -0,0 +1,15 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Diagnostics;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace ExecBatFfmpeg
+{
+ public partial class Form1 : Form
diff --git a/Form1.resx b/Form1.resx
new file mode 100644
index 0000000..151e799
--- /dev/null
+++ b/Form1.resx
@@ -0,0 +1,15 @@
+
+
+