; ----------------------------------------------- Example1b() ; ----------------------------------------------- Func Example1b() Local $sFilePath = "E:\Desktop\File1.txt" Local $sMessage = "" ; ----------------------------------------------- SplashTextOn("NOTICE!!", $sMessage, 200, 50, -1, -1, 4) ; ----------------------------------------------- Local $Result = FileExists($sFilePath) ; ----------------- Switch $Result Case 0 $Result = "The file does not exist!" Case 1 $Result = "The file does exist!" EndSwitch ; ----------------- $sMessage = $Result ; ----------------------------------------------- SplashTextOn("NOTICE!!", $sMessage, 200, 50, -1, -1, 4) Sleep(2000) SplashOff() EndFunc ;==>Example1b ; -----------------------------------------------