Posted - 04/30/2015 : 08:35:23
I'm trying to
- download all the files on a webpage where the file name is like "cust_interact" (eg cust_interact.0815, cust_interact.0615)
(or even better, read the file date and only download today's)
- save it locally with file name and date
They are not in a specific folder but directly under http://web.address.co.za/products/scriptresults/. They're in the root directory
This is my code, which naturally makes total sense to me and only me!
Public Sub Main()
Dim strtemp As String = "\\Server\folder\folder2\folder3\CustInteraction"
Dim strsource As String = "http://web.address.co.za/products/scriptresults/"
Dim webunibase As New WebClient
Dim strdestnew As String = InStr(1, "cust_interact", strsource)
Dim strdest As String = strtemp + Date.Now.ToString("yyyyMMddhhmm") + ".csv"
For Each strdest In strdestnew
Dts.TaskResult = ScriptResults.Success
Edited by - enslinb on 04/30/2015 09:28:47