• 大小: 0.09M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: C#  c  远程  源码  计算机  

资源简介


资源截图

代码片段和文件信息

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

using System.Management;
namespace Ex14_08
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender EventArgs e)
        {

        }
        //首先添加对 System.Management的引用 
        private void CloseComputer(string strnamestring strpwdstring ipstring doinfo)
        {
            ConnectionOptions op = new ConnectionOptions ( ) ; 
            op.Username =strname;//‘‘或者你的帐号(注意要有管理员的权限) 
            op.Password = strpwd; //‘‘你的密码 
            ManagementScope scope = new ManagementScope

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2010-04-06 13:10  Ex14_08\
     目录           0  2010-04-06 13:10  Ex14_08\bin\
     目录           0  2010-04-06 13:10  Ex14_08\bin\Debug\
     文件       24576  2007-07-11 11:34  Ex14_08\bin\Debug\Ex14_08.exe
     文件       28160  2007-07-11 11:34  Ex14_08\bin\Debug\Ex14_08.pdb
     文件        5632  2007-07-11 11:34  Ex14_08\bin\Debug\Ex14_08.vshost.exe
     文件        3607  2007-07-11 11:34  Ex14_08\Ex14_08.csproj
     文件         902  2007-07-11 11:34  Ex14_08\Ex14_08.sln
     文件       12288  2007-07-11 11:34  Ex14_08\Ex14_08.suo
     文件        2275  2007-07-11 11:34  Ex14_08\Form1.cs
     文件        6372  2007-07-11 11:34  Ex14_08\Form1.Designer.cs
     文件        5814  2007-07-11 11:34  Ex14_08\Form1.resx
     文件        1616  2007-07-11 11:34  Ex14_08\Form2.cs
     文件        2575  2007-07-11 11:34  Ex14_08\Form2.Designer.cs
     文件        5814  2007-07-11 11:34  Ex14_08\Form2.resx
     目录           0  2010-04-06 13:10  Ex14_08\obj\
     目录           0  2010-04-06 13:10  Ex14_08\obj\Debug\
     文件         900  2007-07-11 11:34  Ex14_08\obj\Debug\Ex14_08.csproj.GenerateResource.Cache
     文件       24576  2007-07-11 11:34  Ex14_08\obj\Debug\Ex14_08.exe
     文件         180  2007-07-11 11:34  Ex14_08\obj\Debug\Ex14_08.Form1.resources
     文件         180  2007-07-11 11:34  Ex14_08\obj\Debug\Ex14_08.Form2.resources
     文件       28160  2007-07-11 11:34  Ex14_08\obj\Debug\Ex14_08.pdb
     文件         180  2007-07-11 11:34  Ex14_08\obj\Debug\Ex14_08.Properties.Resources.resources
     文件         900  2007-07-11 11:34  Ex14_08\obj\Debug\Ex14_16.csproj.GenerateResource.Cache
     文件       24576  2007-07-11 11:34  Ex14_08\obj\Debug\Ex14_16.exe
     文件         180  2007-07-11 11:34  Ex14_08\obj\Debug\Ex14_16.Form1.resources
     文件         180  2007-07-11 11:34  Ex14_08\obj\Debug\Ex14_16.Form2.resources
     文件       38400  2007-07-11 11:34  Ex14_08\obj\Debug\Ex14_16.pdb
     文件         180  2007-07-11 11:34  Ex14_08\obj\Debug\Ex14_16.Properties.Resources.resources
     目录           0  2010-04-06 13:10  Ex14_08\obj\Debug\TempPE\
     文件         303  2007-07-11 11:34  Ex14_08\obj\Ex14_08.csproj.FileList.txt
............此处省略38个文件信息

评论

共有 条评论