Trevor,
Is it possible that some of the files are in use?
--
Ginny Caughey
..Net Compact Framework MVP
"Trevor" <(E-Mail Removed)> wrote in message
news:3604B52A-89D2-43C3-A20C-(E-Mail Removed)...
> Hi,
>
> When I use:
>
> Dim toDel() As String
> Dim St As String
> toDel = System.IO.Directory.GetFiles(TextBox4.Text) '\program
files\mydata For Each St In toDel
> System.IO.File.Delete(St)
> Next
>
> Not all files get deleted. Ive checked the settings on each file but there
all set to Archive. I cant notice anything else.
>
> Any ideas?
>
> Thanks.
|