Ja så kan det vel klares med det her..
' ----------------------------- Form1 -----------------------------
' Husk en Timer (Timer1) og en TextBox (Text1)
' -----------------------------------------------------------------
Option Explicit
Private Declare Function URLDownloadToFile Lib "urlmon" _
Alias "URLDownloadToFileA" _
(ByVal pCaller As Long, _
ByVal szURL As String, _
ByVal szFileName As String, _
ByVal dwReserved As Long, _
ByVal lpfnCB As Long) As Long
Private Declare Function DeleteUrlCacheEntry Lib "wininet" _
Alias "DeleteUrlCacheEntryA" _
(ByVal lpszUrlName As String) As Long
Private Const ERROR_SUCCESS As Long = 0
Private Const BINDF_GETNEWESTVERSION As Long = &H10
Private arrUrls() As String
Private Function DownloadFile(strSourceUrl As String, strLocalFile As String, _
Optional blnDeleteCache As Boolean = False) As Boolean
If blnDeleteCache Then
Call DeleteUrlCacheEntry(strSourceUrl)
End If
DownloadFile = URLDownloadToFile(0&, strSourceUrl, _
strLocalFile, BINDF_GETNEWESTVERSION, 0&) = ERROR_SUCCESS
End Function
Private Sub Form_Load()
ReDim arrUrls(0) As String
Text1.Text = "
http://www.eksperten.dk/spm/715057" & _
vbCrLf & "
http://www.eksperten.dk/" arrUrls = Split(Text1.Text, vbCrLf)
Timer1.Interval = 60000 ' 1 min
Call Timer1_Timer
End Sub
Private Sub Timer1_Timer()
Dim i As Integer
Dim strLocalFile As String
strLocalFile = "C:\deleteme.htm"
For i = LBound(arrUrls) To UBound(arrUrls)
If DownloadFile(arrUrls(i), strLocalFile, True) = True Then
Kill strLocalFile
End If
Next
End Sub
' ----------------------------- Form1 -----------------------------