VBいまさらですが... 6.0 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?
参考:■ フレームになっているホームページのソースを取得するには? リンク参考書籍コメント
|