Maybe I have misunderstod something but shouldn't GetFileList return an empty string is no files found??
The above test gives the following result: Dir C:\Temp\ holds 1 filesLET>result=
LET>acms_source=C:\Temp\
IFDIREXISTS>%acms_source%,CheckForFiles,DirNotExists
LABEL>CheckForFiles
LET>DirSpec=%acms_source%ThisFileDoNotExists.*
GETFILELIST>%DirSpec%,filename
IF>filename=,NoFilesInDir,SeparateFiles
LABEL>SeparateFiles
SEPARAT>filename,;,Filenames
LABEL>FilesInDir
LET>Result=Dir %acms_source% holds %filenames_count% files
GOTO>End
LABEL>NoFilesInDir
LET>Result=Dir %acms_source% does not hold any files
GOTO>End
LABEL>DirNotExists
LET>Result=Dir %acms_source% does not exists
GOTO>End
LABEL>End
MESSAGEMODAL>%Result%
The variable filename is given the value:C:\Temp\ThisFileDoNotExists.
Can anybody help??
/Carsten Stiller