Connecting Tech Pros Worldwide Forums | Help | Site Map

Copy text file from web server to local drive

Cliff72@gmail.com
Guest
 
Posts: n/a
#1: Oct 11 '07
Is there a way in VBA to copy a file from a web server to a local
drive? Example:
Every morning at 3AM a huge mainframe report is run and a copy of
this report is saved as a text file on a web server:
http://GLJobs.CliffKing.com/Reports_...port101007.txt
The name of my report is:
MyReport101007.txt

I manually download this report to the C:\ drive and then manually
import it into access.
Is there a way i can programmatically do this?

Thanks

Cliff


Tom van Stiphout
Guest
 
Posts: n/a
#2: Oct 11 '07

re: Copy text file from web server to local drive


On Thu, 11 Oct 2007 00:13:26 -0000, Cliff72@gmail.com wrote:

Yes. Look into the XMLHTTP object, which has methods to get the
content of a web page. I've never used it to download a file, but
would not be surprised if that worked.
FTP is another way, assuming you have FTP access to the site.

-Tom.

Quote:
>Is there a way in VBA to copy a file from a web server to a local
>drive? Example:
>Every morning at 3AM a huge mainframe report is run and a copy of
>this report is saved as a text file on a web server:
>http://GLJobs.CliffKing.com/Reports_...port101007.txt
>The name of my report is:
>MyReport101007.txt
>
>I manually download this report to the C:\ drive and then manually
>import it into access.
>Is there a way i can programmatically do this?
>
>Thanks
>
>Cliff
Cliff72@gmail.com
Guest
 
Posts: n/a
#3: Oct 11 '07

re: Copy text file from web server to local drive


On Oct 10, 6:59 pm, Tom van Stiphout <no.spam.tom7...@cox.netwrote:
Quote:
On Thu, 11 Oct 2007 00:13:26 -0000, Clif...@gmail.com wrote:
>
Yes. Look into the XMLHTTP object, which has methods to get the
content of a web page. I've never used it to download a file, but
would not be surprised if that worked.
FTP is another way, assuming you have FTP access to the site.
>
-Tom.
>
>
>
Quote:
Is there a way in VBA to copy a file from a web server to a local
drive? Example:
Every morning at 3AM a huge mainframe report is run and a copy of
this report is saved as a text file on a web server:
http://GLJobs.CliffKing.com/Reports_...port101007.txt
The name of my report is:
MyReport101007.txt
>
Quote:
I manually download this report to the C:\ drive and then manually
import it into access.
Is there a way i can programmatically do this?
>
Quote:
Thanks
>
Quote:
Cliff- Hide quoted text -
>
- Show quoted text -
Thanks for your input.

Closed Thread


Similar Microsoft Access / VBA bytes