         GUI, FindTC:Show, , Total Commander 设置路径
     }
 
-    if TCPath and not FileExist(TCINI)
+    if TCPath and not FileExist(TCIni)
     {
         SplitPath, TCPath, , dir
-        TCINI := dir "\wincmd.ini"
-        IniWrite, %TCINI%, %ConfigPath%, TotalCommander_Config, TCINI
-    }
-
-    TCMarkINI := RegExReplace(TCPath, "i)totalcmd6?4?.exe$", "TCMark.ini")
+        TCIni := dir "\wincmd.ini"
+        IniWrite, %TCIni%, %ConfigPath%, TotalCommander_Config, TCIni
+    }
+
+    TCMarkIni := RegExReplace(TCPath, "i)totalcmd6?4?.exe$", "TCMark.ini")
 
     if RegExMatch(TcPath, "i)totalcmd64\.exe$")
     {

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

    if (SaveMark <> 0)
    {
        IniRead, all_marks, %TCMarkINI%, mark, ms
        all_marks := StrReplace(all_marks, "ERROR", "")

        if (all_marks <> "")
        {
            Mark["ms"] := all_marks

            Loop, Parse, all_marks
            {
                IniRead, new_mark, %TCMarkINI%, mark, %A_LoopField%

                Mark[A_LoopField] := new_mark
                Menu, MarkMenu, Add, %new_mark%, AddMark

﻿TotalCommander:
    global TCPath
    global TCIni
    global TCMarkIni
    global ini

    TCPath := ini.TotalCommander_Config.TCPath
    TCIni := ini.TotalCommander_Config.TCIni

    if !FileExist(TCPath)
    {
