C#实现将应用程序设置为开机启动的方法

时间:2021-01-01 03:39:46
【文件属性】:
文件名称:C#实现将应用程序设置为开机启动的方法
文件大小:32KB
文件格式:PDF
更新时间:2021-01-01 03:39:46
c# 启动 应用程序 本文实例讲述了C#实现将应用程序设置为开机启动的方法。分享给大家供大家参考。具体如下: private void WriteRegistry() { string strName = Application.ExecutablePath; if (File.Exists(strName)) { string strNewName = Path.GetFileName(strName); RegistryKey reg = Registry.LocalMachine.OpenSubKey(SOFTWARE\\Microsoft\\Windows\\CurrentVersion\

网友评论