Dear Helpmeh:
Thank you very much for your help.
After I received your reply, "What is the FULL code in the batch script", I did some more work on the problem, and I found out what was wrong.
The batch file that has the RMDIR command executes from one of the subdirectories that is being removed by the RMDIR command. When I execute my batch program from a different directory, the RMDIR command deletes properly the directory and the sub directories that I want, and then the rest of the MS-DOS commands after the RMDIR command execute as well.
Thanks again for all your help. It was very much appreciated.
With very best wishes,
Edward