ftp.ReceiveFiles not accepting a date parameter in the file name

  • I am trying to download a file using a data parameter in the file name. It does not download the file. Can someone look at this piece of my code and see if you can get it working. I will eventually make the load date the current date plus one, but I am hard-coding for now until I get it working. Thanks

    Dim LoadDate As String = "20121212"

    CurrentMDDBdDBFull(0) = "/File1" + LoadDate + ".zip"

    http://ftp.ReceiveFiles(CurrentMDDBdDBFull, "\\Server1\FTP Downloads\Current", True, False)

  • This isn't the right forum for this question, but I think I know why. In your code, you assign a value to the zero subscripted array element, then reference the entire array in the object method that calls the ftp process. It seems likely you just need to add the (0) to the reference in the http://ftp.ReceiveFiles statement for the array, such as:

    ftp.ReceiveFiles(CurrentMDDBdDBFull(0), "\\Server1\FTP Downloads\Current", True, False)

    Let me know...

    P.S. to anyone that knows how, can this post and answer be moved where it belongs with a reference to where it goes left behind in it's place?

    Steve (aka sgmunson) 🙂 🙂 🙂
    Rent Servers for Income (picks and shovels strategy)

  • Sorry, I put it in the wrong place. Also, your suggestion did not work. Any other ideas?

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply