According to the theory
RUN RD /S &Path
it should work but it doesn't.. (Don't know why)
According with Jose Luis Santana (not copyrighted yet :))) you can use 2 APIs:
1) MoveFile (I don't have the sample of this function on hand) to move the directory to another folder like Recent Documents.
2) Empty Recent Documents Folder:
DECLARE LONG SHAddToRecentDocs IN "Shell32";
LONG lFlags,;
LONG lPv
=SHAddToRecentDocs (0, 0)
It's a tricky (unclean) way to do it...but it works.
Regards
>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.