-
C# 使用进程名禁止程序运行多次
C# 使用进程名禁止程序运行多次,
string moduleName = Process.GetCurrentProcess().MainModule.ModuleName; //获取当前活动进程的模块名称
string processName = System.IO.Path.GetFileNameWithoutExtension(moduleName);//返回指定路径字符串的文件名
Process[] processes = Process.GetProcessesByName(processName);//根据文件名创建进程资源数组
if (processes.Length > 1)//如果该数组长度大于1,说明多次运行
{
MessageBox.Show("本程序一次只能运行一个实例!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);//弹出提示信息
this.Close();//关闭当前窗体
}
- 2022-02-04 01:16:54下载
- 积分:1
-
AndroidSerialDemo
安卓串口助手 SerialDemo是一个安卓串口调试工具,可以调试安卓的串口通信(Android serial port assistant SerialDemo is a Android serial debugging tool that can debug the serial port communication of Android)
- 2021-01-13 17:28:47下载
- 积分:1
-
TBOX国标
说明: 车载终端TBOX国标,GB/T 32960统一技术规范(Tbox national standard for vehicle terminal)
- 2020-08-25 09:48:15下载
- 积分:1
-
SteveFuber
ARM SoC体系结构_英国_Steve Fuber 完整版
讲解非常详细,为PDG格式(ARM SoC Architecture _ British _Steve Fuber full version on the very detailed, format for PDG)
- 2006-06-01 18:01:38下载
- 积分:1
-
太阳能光伏并网逆变器仿真
太阳能光伏并网逆变器仿真的模型和程序,包含mppt控制器程序(Model and program of solar pv grid-connected inverter simulation, including MPPT controller program)
- 2018-05-31 15:22:33下载
- 积分:1
-
clasification
journal using clasification
- 2019-03-28 13:54:30下载
- 积分:1
-
用MATLAB编程,实现对一段语音信号LPCC的提取
用MATLAB编程,实现对一段语音信号LPCC的提取-MATLAB programming, to achieve a voice signal from the LPCC
- 2022-03-03 06:11:25下载
- 积分:1
-
rotating_3d_globe
说明: earth geoid maker free
- 2019-02-08 14:18:40下载
- 积分:1
-
buck2A
说明: PI闭环控制的BUCK变换器 simulink仿真(Buck converter with PI closed-loop control)
- 2020-09-15 19:07:55下载
- 积分:1
-
LTE_TX_POWER
说明: 该程序可以控制CMW综测仪在LTE模式下对发射功率进行测量和获取(The program can control the CMW instrument to measure and acquire the transmitting power in LTE mode)
- 2019-11-07 10:26:05下载
- 积分:1