>>How do you remove a directory if there are files in it? rmdir does not work because it says access denied.
>>
>>Thanks,
>>Matt
>
>Programatically - or from the command prompt? From the command prompt - issue DELTREE followed by the directory ex: DELTREE c:\temp.
Winnt do not support Deltree!!
Of cos, to deltree programmically, will be:
Run /N Deltree /y c:\temp>nul
Nowait with no prompt to confirm and also nothing on display!
Another way will be:
Delete File c:\temp\*.*
Rmdir c:\temp
But if your error message is 'Access denied', you may not allow to do as
you are not superuser to remove directory!! Can you state more information?
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.