Link to home
Start Free TrialLog in
Avatar of AlHal2
AlHal2Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Downloading Files from Website

Assuming I have a userID and Password, how do I download files from
https://www.stoxx.com/document/CustomisedIndices/Current/Large%20Mid%20Indices
I'd prefer to use a batch file, but C# with .NET 3.5 is OK.
The files need to be downloaded to my hard disk.
SOLUTION
Avatar of Anil Golamari
Anil Golamari
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I don't believe Windows has a built-in utility like cURL on *nix systems, so I doubt that you can do this solely with a .bat file. You'd either have to install an additional utility like cURL for Windows and use such a utility within a .bat file, use PowerShell, or compile code like the above suggestion.
Avatar of AlHal2

ASKER

Thanks Anil.

HI käµfm³d,

I have Windows 7 which I believe comes with Powershell (not sure which version).  Would you have a Powershell script?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AlHal2

ASKER

Thanks.
Avatar of AlHal2

ASKER

Are you able to download close_natp or close_natp_20151221?
When I download the file it looks funny.
What does "looks funny" mean? Are you sure you've given the file the correct extension?
Avatar of AlHal2

ASKER

It has html and Javascript.  Goto https://www.stoxx.com/document/CustomisedIndices/Current/Large%20Mid%20Indices/
Search for close_natp_20151221 using Edit\Find and you'll see it.  The file has a csv extension.