We help IT Professionals succeed at work.

Automating the retrival of a file

Medium Priority
264 Views
Last Modified: 2012-05-07
I have a file at a remote site that I manually download to my local server, on a daily basis. Both servers are Microsoft Server 2003..The way I currently do this, is by logging onto a web page (http, no password or user name needed)and I manually retrive the file. Is there some way I can automate this activity? Any help would be appriciated.

John
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2010

Commented:
why is this in the Sharepoint zone?  is the interface you're using Sharepoint?

have you tried FTP?

Author

Commented:
I have sharepoint running on my local server, I thought there might be a solution w/sharepoint.

The file being downloaded is http, not ftp.
CERTIFIED EXPERT
Top Expert 2010

Commented:
the file itself is not HTTP.  you are just accessing the file via a web browser.  the file itself is stored on a server, and should be able to be accessed using FTP.

web site files (i.e.  html files) are available to web browers using an HTTP address.
webmasters use FTP to transfer files to and from the web server.

FTP is File Transfer Protocol.  it is the way in which files get transferred to and from web servers.

is this file you're downloading publicly available or do you need to use a username/password to download it?

if it's publicly available, try replacing http:// with ftp:// in your web browser.

where i'm going with this:
if you have access to the file with FTP, you can use a script to get the file and schedule that script using Scheduled Tasks.
CERTIFIED EXPERT
Top Expert 2010

Commented:
oh...
and this solution will work even if you need to provide a username/password in order to download the file.

i have a script that logs into a server using FTP and downloads the files in a particular directory every night.
here is the code for a script called myscript.ftp:
<username>
<password>
prompt n
binary
cd DirectoryWhereFilesAreLocated
lcd I:\DestinationDirectory
mget *.*
quit

i then schedule the another script using Scheduled Tasks. the contents of that script:
ftp -v -s:myscript.ftp website.com >FTP.log

this last script initiates FTP and myscript.ftp provides the commands to run for the FTP session.

Author

Commented:
The file being accessed is publicly available (intranet), but to access the site via ftp requires a user name and password.
CERTIFIED EXPERT
Top Expert 2010
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
found and used httpget.exe freeware.

Thanks for helping
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.