             if ErrorLevel
                 WinGet, TCPath, ProcessPath, ahk_pid %ErrorLevel%
         }
+
         if TCPath
             IniWrite, %TCPath%, %ConfigPath%, TotalCommander_Config, TCPath
     }

    }
    else
    {
        IniRead, f, %ConfigPath%, redirect, RightHistory
        if FileExist(f)
            IniRead, history, %f%, RightHistory
        else

    }

    Global Mark := []
    Global SaveMark := ini.TotalCommander_Config.SaveMark

    if (SaveMark <> 0)
    {
        IniRead, all_marks, %TCMarkINI%, mark, ms
