If you insert a PAUSE before the CALL line to verify the contents of
DeleteTmp.bat, you would find that its contents are not what you expect.
I get the following contents in DeleteTmp.bat
del /F /S "c:\*.tmp >> Delete.log"
del /F /S "c:\*._mp >> Delete.log"
del /F /S "c:\*.log >> Delete.log"
Its not deleting the files and not putting anything in Delete.log
because everything in the quotes in DeleteTmp.bat are being treated as a
complete fimename. Also the Delete.log is a poorly chosen name as it
falls into the scope of *.log which can not be deleted because the file
is in use.
To solve this problem, remove both dbl-quotes and properly escape the
redirection with ^>^>.
Personally, I would reduce the entire thing down to just one line and
eliminate all of the temp files. KISS.
del /F /S c:\*.tmp c:\*._mp c:\*.log > Delete.log 2>nul
--
Todd Vargo
(Post questions to group only. Remove "z" to email personal messages)