Gudday all
My code has been loaded onto the server and is working except for two (2) teensy problems that users have found. The problem occurs when no .spl files are present in the folder
echo finding spl files
rem *** Extract all .SPL files ***
rem dir D:\Archives\E20_120_AU\ArchiveCreator\Errors\*.spl /b > SPLfiles.txt
dir !file_path!*.spl /b > SPLfiles.txt
echo finished finding spl files
.....
del SPLfiles*.txt
(the echo messages are for me)
When no .spl files are found an error message occurs
File not found
and the temporary file SPLfiles.txt is not deleted as it should be.
Why is the message 'File not found' being generated? I do not want the code to fail if no .spl files are found.
Or more particularly can I stop it?
And why would the file not be deleted if indeed the non-deletion is due to the error message?