clscommon.cs

来自「原创: 外挂网站刷IP程序的源码 自动ADSL拨号刷新IP,可录制鼠标模拟点」· CS 代码 · 共 45 行

CS
45
字号
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Security.Cryptography;
using System.Data;
using System.Text.RegularExpressions;
using System.Diagnostics;


namespace qdog
{
    class clsCommon
    {

        public static string RunPath()
        {
            return RunPath(false);
        }

        public static string RunPath(Boolean bWithCommand)
        {
            string strPath  = "";
            strPath= Process.GetCurrentProcess().MainModule.FileName;
            strPath = Path.GetDirectoryName(strPath);
            //strPath = System.IO.Path.GetDirectoryName( System.Reflection.Assembly.GetExecutingAssembly.Location);

            //if (bWithCommand)
            //{
            //    if (command() != "")
            //    {
            //        if (Directory.Exists(Command()))
            //        {
            //            strPath = Command();
            //        }
            //    }
            //}
            return strPath;
        }

        
    }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?