1. You need to use double backslashes. Please see "Special ASCII characters" topic in the help for more info.  FileExists( "c:\\temp\\a.a", found )  2. FileExists( "c:\\temp\\pippo0840*.*", found )  or if you need to know the actual file name use  Dir("c:\\temp\\pippo0840*.*", name )  and then check the name value for an empty string. If it is empty, there is no such file, otherwise it will have the name of the found file.  : two problem  : first  : if i use this function  : FileExists( "c:\temp\a.a", found )  : it gives to me always false.  : in the directory the file exist i'm sure.  : second  : I want to control the first 8 characters of the name of the file, for knowing  : if the file exist.  : how can i do?  : example: file name c:\temp\pippo084023072006.tmb  : if the file pippo0840*.* exist i want that the script send me true on the  : variabile.  : thank you so much  : Luca   
   |