Good Morning Henry,
this problem occurs sometimes, especially if you first delete the files and the try to RMDIR. This is bound to a caching problem of windows. It occurs more often with W2K and XP then other versions.
The kludge I use:
WAIT "" TIMEOUT 5 NOCLEAR
RMDIR ...
An other way will be to catch the error, wait the time and retry
HTH
Agnes
>Hi all:
>
>I am attempting to first, delete an existing directory and all subfolders within that directory and then create a new directory with subdirectories where needed.
>
>I have tried the RMDIR and RD commands - but get a message that says "File Access is Denied". Clicking HELP tells me that I am trying to write to a protected file (whihc is not true).
>
>Any suggestions? Thank you in advance.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]