Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7024165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:48:18+00:00 2026-05-27T23:48:18+00:00

Its soounds simple but proving to be a headache . How can i do

  • 0

Its soounds simple but proving to be a headache . How can i do this ? My initial idea was to use a bat file and then add it as a task in SSIS .

Problem is that copy, xcopy or robcopy does not work ?

robocopy “http://wpcfs.corp.xx.com/xxx/xxx/BEP/xxx/documents/EB%20Bus%20Ops%20Points%20of%20Contact.xlsx” “C:\Imports\”

Any ideas ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:48:18+00:00Added an answer on May 27, 2026 at 11:48 pm

    If you want to download from a website then you can use a SSIS script to download the files either via WebClient, WebRequest, or through the HTTP Connection Manager. There’s a pretty thorough example of downloading via the HTTP Connection Manager on this blog. The blog comments also includes code that I listed below that downloads the data via WebRequest/WebResponse. You could also use the more straight forward WebClient, but I found I had problems using the WebClient to download really large files that I was able to avoid with the WebRequest/WebResponse approach.

    Imports System.IO 
    Imports System.Net 
    Imports System.Text 
    Imports System.Web 
    
    
    Public Class WebRetrieve 
        Public Shared Sub Main() 
    
           Dim wr As HttpWebRequest = CType(WebRequest.Create("https://reports/reports.txt"), HttpWebRequest)
    
            Dim ws As HttpWebResponse = CType(wr.GetResponse(), HttpWebResponse) 
            Dim str As Stream = ws.GetResponseStream() 
            Dim inBuf(100000000) As Byte 
            Dim bytesToRead As Integer = CInt(inBuf.Length) 
            Dim bytesRead As Integer = 0 
            While bytesToRead > 0 
                Dim n As Integer = str.Read(inBuf, bytesRead, bytesToRead) 
                If n = 0 Then 
                    Exit While 
                End If 
                bytesRead += n 
                bytesToRead -= n 
            End While 
            Dim fstr As New FileStream("c:\New\reports.txt", FileMode.OpenOrCreate, FileAccess.Write)
             fstr.Write(inBuf, 0, bytesRead) 
            str.Close() 
            fstr.Close() 
        End Sub 
    End Class
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey all. I know this sounds simple, but I can't find a way to
Sounds simple enough, but its not working. In this example, I want to set
I know this sounds like a really obvious question, but it's proving harder to
This sounds like it would be a simple task, but I'm running into some
Sounds simple, but struggling to get this working. I thought it would be easy
Now this is going to be a very absurd question. But what can I
Unfortunately, the answer to this question isn't quite as simple as it sounds... but
This question sounds simple, but I'm an expert with CSS and I'm thinking it's
This sounds like a simple question, but I don't know how to search for
Sounds simple but it's giving me grief: Tried this: function validateAddress() { if (!($('<%=txtPlaceName.ClientID%>').val()

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.