• 大小: 0.12M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-24
  • 语言: C#
  • 标签:

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.Win32;

namespace GetAutoRun
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        string[] Machine;
        string[] User;
        private void getMachineInfo()//读取HKEY_LOCAL_MACHINE分支下的启动项
        {
            string[] reginfo = new string[2];
            RegistryKey rk = Registry.LocalMachine;
            RegistryKey rk2 = rk.OpenSubKey(@“SOFTWARE\Microsoft\Windows\CurrentVersion\Run“ true);
            string[] MachineFiles = rk2.GetValueNames();
            Machine = rk2.GetValueNames();
            foreach (string name in MachineFiles)
            {
                string registdata;
                RegistryKey rk3;
                RegistryKey rk4;
                rk3 = Reg

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         920  2009-02-10 09:11  sj\01\GetAutoRun\GetAutoRun.sln
     文件       14336  2009-02-10 09:34  sj\01\GetAutoRun\GetAutoRun.suo
     文件        2482  2009-02-10 09:34  sj\01\GetAutoRun\GetAutoRun\Form1.cs
     文件        3041  2009-02-10 09:33  sj\01\GetAutoRun\GetAutoRun\Form1.Designer.cs
     文件        5814  2009-02-10 09:33  sj\01\GetAutoRun\GetAutoRun\Form1.resx
     文件        3766  2009-02-10 09:33  sj\01\GetAutoRun\GetAutoRun\GetAutoRun.csproj
     文件         491  2009-02-10 09:11  sj\01\GetAutoRun\GetAutoRun\Program.cs
     文件        9216  2009-02-10 09:34  sj\01\GetAutoRun\GetAutoRun\bin\Debug\GetAutoRun.exe
     文件       22016  2009-02-10 09:34  sj\01\GetAutoRun\GetAutoRun\bin\Debug\GetAutoRun.pdb
     文件       14328  2009-02-10 09:34  sj\01\GetAutoRun\GetAutoRun\bin\Debug\GetAutoRun.vshost.exe
     文件         490  2007-07-21 01:33  sj\01\GetAutoRun\GetAutoRun\bin\Debug\GetAutoRun.vshost.exe.manifest
     文件         617  2009-02-10 09:34  sj\01\GetAutoRun\GetAutoRun\obj\Debug\GetAutoRun.csproj.FileListAbsolute.txt
     文件         847  2009-02-10 09:33  sj\01\GetAutoRun\GetAutoRun\obj\Debug\GetAutoRun.csproj.GenerateResource.Cache
     文件        9216  2009-02-10 09:34  sj\01\GetAutoRun\GetAutoRun\obj\Debug\GetAutoRun.exe
     文件         180  2009-02-10 09:33  sj\01\GetAutoRun\GetAutoRun\obj\Debug\GetAutoRun.Form1.resources
     文件       22016  2009-02-10 09:34  sj\01\GetAutoRun\GetAutoRun\obj\Debug\GetAutoRun.pdb
     文件         180  2009-02-10 09:33  sj\01\GetAutoRun\GetAutoRun\obj\Debug\GetAutoRun.Properties.Resources.resources
     文件        1352  2009-02-10 09:11  sj\01\GetAutoRun\GetAutoRun\Properties\AssemblyInfo.cs
     文件        2870  2009-02-10 09:11  sj\01\GetAutoRun\GetAutoRun\Properties\Resources.Designer.cs
     文件        5612  2009-02-10 09:11  sj\01\GetAutoRun\GetAutoRun\Properties\Resources.resx
     文件        1095  2009-02-10 09:11  sj\01\GetAutoRun\GetAutoRun\Properties\Settings.Designer.cs
     文件         249  2009-02-10 09:11  sj\01\GetAutoRun\GetAutoRun\Properties\Settings.settings
     文件         929  2009-02-10 09:34  sj\02\DeleteAutoRun\DeleteAutoRun.sln
     文件       14848  2009-02-10 09:44  sj\02\DeleteAutoRun\DeleteAutoRun.suo
     文件        3772  2009-02-10 09:37  sj\02\DeleteAutoRun\DeleteAutoRun\DeleteAutoRun.csproj
     文件        4404  2009-02-10 09:43  sj\02\DeleteAutoRun\DeleteAutoRun\Form1.cs
     文件        4343  2009-02-10 09:38  sj\02\DeleteAutoRun\DeleteAutoRun\Form1.Designer.cs
     文件        6019  2009-02-10 09:38  sj\02\DeleteAutoRun\DeleteAutoRun\Form1.resx
     文件         494  2009-02-10 09:34  sj\02\DeleteAutoRun\DeleteAutoRun\Program.cs
     文件       10240  2009-02-10 09:43  sj\02\DeleteAutoRun\DeleteAutoRun\bin\Debug\DeleteAutoRun.exe
     文件       28160  2009-02-10 09:43  sj\02\DeleteAutoRun\DeleteAutoRun\bin\Debug\DeleteAutoRun.pdb
............此处省略35个文件信息

评论

共有 条评论