Operating System - Microsoft
1753797 Members
7338 Online
108802 Solutions
New Discussion

KILL don't kill in VBA (Access 2000) with XP

 
Mr GOMEZ Bruno
New Member

KILL don't kill in VBA (Access 2000) with XP

Hello
With Windows 98, KILL remove
With XP, KILL don't remove !
Do you know that ?
Merci
1 REPLY 1
Arch_Muthiah
Honored Contributor

Re: KILL don't kill in VBA (Access 2000) with XP

Hi,
there are so many ways, you follow this...

Sub Macro11()
Dim aFile As String
aFile = Dir("c:\temp\*.*", vbNormal)
While aFile <> ""
Kill "c:\temp\" & aFile
aFile = Dir
Wend
End Sub


Archunan
Regards
Archie