VB

TIPS

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
Sub doDownload()
 Dim lngRet As Long
 Dim DownURL As String
 Dim SaveFile As String
 DownURL = "http://localhost/test.txt"
 SaveFile = "C:\test.txt"
 lngRet = URLDownloadToFile(0, DownURL, SaveFile, 0, 0)
 If lngRet = 0 Then
   MsgBox "OK" 
 Else 
   MsgBox "NG"
 End If
End Sub 

WebControl?


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS