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

资源简介


资源截图

代码片段和文件信息

/* 
 * 网址:http://www.afuhao.com/article.aspx?articleId=84&articleGroupId=42
 * 作者:符号
 * Q Q:254186917
 * 邮箱:service@afuhao.com
 * 
 */

using System;
using System.Collections.Generic;
using System.Diagnostics;

namespace HostManagerDemo
{
    [Flags]
    public enum ExplorerShowOptions
    {
        None=0
        NewWindow=1
        Select=2
        Defaultstyle=4
    }
    public class ExplorerHelper
    {
        public static Process Show(string path)
        {
            return Show(path ExplorerShowOptions.NewWindow | ExplorerShowOptions.Select);
        }
        public static Process Show(string path ExplorerShowOptions options)
        {
            List list = new List();
            if (options != ExplorerShowOptions.None)
            {
                if ((options & ExplorerShowOptions.NewWindow) == ExplorerShowOptions.NewWindow)
                    list.Add(“/n“);
                if ((options & ExplorerShowOptions.D

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-11-23 19:26  HostManagerDemo\
     文件         887  2012-11-02 16:17  HostManagerDemo.sln
     文件       20992  2012-11-23 19:31  HostManagerDemo.suo
     文件         204  2012-11-02 17:34  HostManagerDemo\app.config
     目录           0  2012-11-08 15:23  HostManagerDemo\bin\
     文件       19968  2012-11-23 19:31  HostManagerDemo\bin\HostManagerDemo.exe
     文件       42496  2012-11-23 19:31  HostManagerDemo\bin\HostManagerDemo.pdb
     文件       11608  2012-11-23 19:27  HostManagerDemo\bin\HostManagerDemo.vshost.exe
     文件        2419  2012-11-02 16:55  HostManagerDemo\bin\HostManagerDemo.vshost.exe.manifest
     文件        1421  2012-11-23 19:31  HostManagerDemo\ExplorerHelper.cs
     文件        5576  2012-11-23 19:27  HostManagerDemo\HostManagerDemo.csproj
     文件         478  2012-11-02 16:54  HostManagerDemo\HostManagerDemo.csproj.user
     文件       11994  2012-11-23 19:31  HostManagerDemo\HostsManager.cs
     文件        4355  2012-11-23 19:31  HostManagerDemo\MainForm.cs
     文件        7774  2012-11-23 19:27  HostManagerDemo\MainForm.Designer.cs
     文件        5817  2012-11-23 19:27  HostManagerDemo\MainForm.resx
     目录           0  2012-11-02 16:17  HostManagerDemo\obj\
     目录           0  2012-11-02 16:17  HostManagerDemo\obj\x86\
     目录           0  2012-11-23 19:31  HostManagerDemo\obj\x86\Debug\
     文件        2164  2012-11-02 16:17  HostManagerDemo\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        5350  2012-11-23 19:31  HostManagerDemo\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件         754  2012-11-23 19:27  HostManagerDemo\obj\x86\Debug\GenerateResource.read.1.tlog
     文件         998  2012-11-23 19:27  HostManagerDemo\obj\x86\Debug\GenerateResource.write.1.tlog
     文件        1382  2012-11-23 19:27  HostManagerDemo\obj\x86\Debug\HostManagerDemo.csproj.FileListAbsolute.txt
     文件       19968  2012-11-23 19:31  HostManagerDemo\obj\x86\Debug\HostManagerDemo.exe
     文件         180  2012-11-23 19:27  HostManagerDemo\obj\x86\Debug\HostManagerDemo.MainForm.resources
     文件       42496  2012-11-23 19:31  HostManagerDemo\obj\x86\Debug\HostManagerDemo.pdb
     文件         180  2012-11-23 19:27  HostManagerDemo\obj\x86\Debug\HostManagerDemo.Properties.Resources.resources
     文件           2  2012-11-23 19:27  HostManagerDemo\obj\x86\Debug\ResGen.read.1.tlog
     文件           2  2012-11-23 19:27  HostManagerDemo\obj\x86\Debug\ResGen.write.1.tlog
     目录           0  2012-11-08 16:01  HostManagerDemo\obj\x86\Debug\TempPE\
............此处省略9个文件信息

评论

共有 条评论