For Programmers: Free Programming Magazines  


Home > Archive > MSDN > January 2005 > Download a file from a script.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Download a file from a script.
Rudi Groenewald

2005-01-24, 3:57 pm

Hi all,

I think I'm going to ask the stupidest question there is but,

I need to download a file daily from a website, it will always be the same
filename, just different content. Now I can schedule a job to run on my
server (SQL Server 2000) but what script do I use to tell the pc that it's
gotta download an excel file to directory? I cannot use FTP unfortunately,
then it would be easier, I can only download this file via HTTP

I tried

copy Http://www.server.co.za/file.xls c:\file\

But it tells me invalid device.... Doh...


Could someone plz help me

Thanks,
R


Michael J. Carter

2005-01-24, 3:57 pm

You can use a tool like WGET.

http://www.gnu.org/software/wget/wget.html

WGET for Windows: http://xoomer.virgilio.it/hherold/


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com