Operating System - Microsoft
1748044 Members
4795 Online
108757 Solutions
New Discussion

Re: 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