I need to delete the directory with files and sub folders. If i use RemoveDirectory(), it will delete the empty directory only. Is any function available for deleting the directory with files & sub folders ? otherwise how can do this?
RemovePath( path )
if FindFirstFile( path )
doif (name == . || name == ..)
continue;
endif
if (name is a file)
delete name
endif
if (name is a directory)
newpath = path + \ + name
RemovePath( newpath )
endif
while FindNextFile != STOP
delete path
endif
end RemovePath