Exemple #1
0
        private void CopyIniToCurrentLocation()
        {
            string iniFileName = System.IO.Path.GetFileName(IniPath);
            string destPath    = System.IO.Directory.GetParent(System.Reflection.Assembly.GetExecutingAssembly().Location).FullName + @"\" + iniFileName;

            if (IniPath.ToUpper().Equals(destPath.ToUpper()) == false)
            {
                System.IO.File.Copy(IniPath, destPath, true);
            }
        }
Exemple #2
0
 Path = new FileInfo(IniPath ?? EXE + ".ini").FullName.ToString();
Exemple #3
0
 public Ini(string IniPath = null) => path = new FileInfo(IniPath ?? EXE + ".ini").FullName.ToString();