I have a little issue with my code. In fact, I have two.
What I want to do is delete a folder with all subfolders and files. I tried 2 ways:
The first one:
Dim di as New DirectoryInfo(spath) For Each diChild as DirectoryInfo In di.getdirectories() TraverseDirectory(diChild) Next CleanAllFilesInDirectory(di) di.delete()
The other one:
Both of the method work, except for 2 occurence:
1) When a folder contain a special character (not illegal), like é, it throw an exception (it says access denied but that is clearly not the problem).
2) When a folder is longer then MAX_PATH
For the second problem, I read at some place on the web to use unicode path, but I find it only for c++ and when I try to convert to vb.net, I get errors.
Does anyone have a clue on how to solve this two problem?