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); } }
Path = new FileInfo(IniPath ?? EXE + ".ini").FullName.ToString();
public Ini(string IniPath = null) => path = new FileInfo(IniPath ?? EXE + ".ini").FullName.ToString();