Avatar of AlHal2
AlHal2
Flag 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.
Windows BatchC#

Avatar of undefined
Last Comment
AlHal2

8/22/2022 - Mon
SOLUTION
Anil Golamari

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
kaufmed

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.
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
kaufmed

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
AlHal2

ASKER
Thanks.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
AlHal2

ASKER
Are you able to download close_natp or close_natp_20151221?
When I download the file it looks funny.
kaufmed

What does "looks funny" mean? Are you sure you've given the file the correct extension?
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.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.