Deleting copied files -> not all deleted ?!?!?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

When I use

Dim toDel() As Strin
Dim St As Strin
toDel = System.IO.Directory.GetFiles(TextBox4.Text) '\program files\mydata For Each St In toDe
System.IO.File.Delete(St
Nex

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.
 
Trevor,

Is it possible that some of the files are in use?
--
Ginny Caughey
..Net Compact Framework MVP

Trevor said:
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.
 
Back
Top