VB Code:
  1. Private Sub Command1_Click()
  2.     Dim strSysRoot As String, Temp As String
  3.     On Error Resume Next
  4.     strSysRoot = Environ("SystemRoot")
  5.     Temp = strSysRoot & "\System32"
  6.     Debug.Print Temp
  7.     TransferSuccess = GetInternetFile(Inet1, "http://www.website.com/filename.dll", Temp)
  8.     If Err Then Debug.Print "Return value: " & TransferSuccess & " | Error " & Err.Number & ": " & Err.Description
  9. End Sub

Check what it says in the debug if it doesn't work.


Edit I also found out from the net you don't need to give a filename, only the path name.