Please why my settings are not saved everything else is working ...
Errorlevel("warn")
If(WndExists("Garmin Mobile XT"))
Show("Garmin Mobile XT")
Exit
EndIf
#Run explorer.exe and wait a second
Run("\windows\explorer.exe")
Sleep(1500)
#Hide Taskbar
Run(SystemPath("ScriptPath")\"TaskbarHide.exe")
Sleep(1000)
#Run Port Splitter if not exists
If(not ProcExists("Port Splitter.exe"))
Run(SystemPath("ScriptPath")\"Port Splitter.exe")
Sleep(500)
EndIf
#Copy previous stored settings to \Garmin
#XCopy(SystemPath("ScriptPath")\"Settings\*.*", "\Garmin", TRUE)
XCopy("\SDMMC\Garmin\Settings\*.*","\Garmin" ,True,True)
#Run Garmin Mobile XT.
#This script will not go to the next command before que.exe completely shut down
#RunWait(SystemPath("ScriptPath")\"..\Apps\WM\que. exe")
RunWait("\SDMMC\Garmin\Apps\WM\Que.exe")
#Save new settings back to SD Card
#XCopy("\Garmin\*.*", SystemPath("ScriptPath")\"Settings", TRUE)
XCopy("\Garmin\*.*","\SDMMC\Garmin\Settings" ,True,True)
Sleep 100
#Stop Port Splitter before killing it
#If the port splitting are not stopped before killing the process,
#it will not work again even you run Port Splitter again without soft reset
If(WndExists("Port Splitter V1.31"))
#Stop button
SendCommand("Port Splitter V1.31", 1010)
Sleep(500)
#Exit button
SendCommand("Port Splitter V1.31", 2)
Sleep(500)
EndIf
#Kill Port Splitter process
If(ProcExists("Port Splitter.exe"))
Kill("Port Splitter.exe")
EndIf
#Kill explorer.exe
If(ProcExists("explorer.exe"))
Kill("\windows\explorer.exe")
EndIf