Skip to content

Instantly share code, notes, and snippets.

@dck-jp
Last active August 29, 2015 13:56
Show Gist options
  • Save dck-jp/8973513 to your computer and use it in GitHub Desktop.
Save dck-jp/8973513 to your computer and use it in GitHub Desktop.
Test Code of the FileDownload Subroutine in Ariawase
Option Explicit
Sub FileDownloadTest()
Dim url As String
Dim savePath As String: savePath = "D:\Test\"
Dim returnValue As String
url = "http://msdn.microsoft.com/en-us/library/aa385483.aspx"
returnValue = FileDownload(url, savePath)
'returnValue is "D:\Test\aa385483.aspx"
url = "http://192.168.0.1/NotExistPage.html"
returnValue = FileDownload(url, savePath)
' returnValue is vbNullString
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment