#include #include #include #include Global $hConfigOpen, $sReadConfig, $sDownloadFolderPath, $sLocalFolderPath, $sTabloFolderPath, $sTabloExist Global $sConfigPath = (@ScriptDir & "\Config.txt") Global $aFiles = FileReadToArray($sConfigPath) Call ("GetConfigFile") Func GetConfigFile() $hConfigOpen = FileOpen($sConfigPath, $FO_READ) If $hConfigOpen = -1 Then Exit MsgBox($MB_SYSTEMMODAL, "", "error reading Config.txt.") ; If open error $sDownloadFolderPath = $aFiles[0] $sLocalFolderPath = $aFiles[1] $sTabloFolderPath = $aFiles[2] If Not FileExists($sTabloFolderPath) Then Beep(800, 1000) MsgBox($MB_SYSTEMMODAL, "", $sTabloFolderPath & " does not exist!"); always not exist EndiF MsgBox($MB_SYSTEMMODAL, "", $sTabloFolderPath); display good path EndFunc ;==>GetConfigFile