Quote:

just saying that you should have a lot of checks in place to make sure you don't delete the wrong thing.




I totally agree!

Maybe something like...?
Code:
 $files = Dirplus('c:\documents and settings')
for each $file in $files

If $file = 'Administrator'
next
endif
; along with added "IF" statements for profiles you are not ever going to delete



do ? $file
?'Would you like to delete the profile '$file' ? y/n>' gets $deleteIt
until $deleteIt
if $deleteIt='y'
do ? $file
? 'Are you sure you want to delete this profile? Y/N>' gets $confirm
until $confirm

endif

if $confirm = 'y'

rd $file
endif

next