Last active
August 29, 2015 13:56
-
-
Save dck-jp/8973513 to your computer and use it in GitHub Desktop.
Test Code of the FileDownload Subroutine in Ariawase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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