Try this Dim found, boolean Dim file_list, string FileExists "c:\\random.*", found If found, DO_JOB, EXIT DO_JOB: Dir "c:\\random.*", file_list EXIT: : When using the JAL Dir statement to return a file list, I get the following : error if the mask does not match any files: "Error starting file : search operation". : For example, the following code returns an error because I have no files in : the root of my c:\ drive which match the mask random.* : Dim file_list, string : Dir ("c:\\random.*", file_list)
|