     Global Mark := []
     Global SaveMark := ini.TotalCommander_Config.SaveMark
 
-    if (SaveMark <> 0)
-    {
-        IniRead, all_marks, %TCMarkINI%, mark, ms
+    if (SaveMark != 0)
+    {
+        IniRead, all_marks, %TCMarkIni%, mark, ms
         all_marks := StrReplace(all_marks, "ERROR", "")
 
-        if (all_marks <> "")
+        if (all_marks != "")
         {
             Mark["ms"] := all_marks
 
             Loop, Parse, all_marks
             {
-                IniRead, new_mark, %TCMarkINI%, mark, %A_LoopField%
+                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)
    {

        GUI, FindTC:Show, , Total Commander 设置路径
    }

    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")

    if RegExMatch(TcPath, "i)totalcmd64\.exe$")
    {
