Saved Bookmarks
| 1. |
Solve : Error message when files not found? |
|
Answer» Gudday all File not foundand 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?Code: [Select]echo finding spl files rem *** Extract all .SPL files *** rem dir D:\Archives\E20_120_AU\ArchiveCreator\Errors\*.spl /b > SPLfiles.txt if exist "!file_path!*.spl" ( dir !file_path!*.spl /b > SPLfiles.txt echo finished finding spl files ) else ( echo No .spl files found ) ..... del SPLfiles*.txtST Thank you. So much to learn. |
|