Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

downloading a file from a web server to a specific directory location

Status
Not open for further replies.

Jamin79

Programmer
May 23, 2001
9
GB
Hi,

I've been hunting around forums all day but I can't find what I need.

I'm trying to download an XML file to a specific directory on a host computer but I can't find any information on how to do this. Originally I wanted the file to download automatically but aparently this is not possible however I am hoping you can do this via a link of some kind.

Does anyone have any suggestions?

Thanks,

Ben.
 
Sorry, it's not a solution!

What do you mean you are downloading a file to a directory on a host computer?

Are you trying to ensure that when a user of your application downloads the file it downloads into their correct directory? If so I think you may be out of luck. This is the behaviour that virus writers would love to get their hands on, so it is bound to be almost impossible.

There are only two ways

1) create a self extracting archive file with the default directory already set which the user runs to "install" the file

2) get the application which requires the XML to pull the file from the web and put it in its required directory (if it can)
Derren
[The only person in the world to like Word]
 
I'm basically trying to create an offline application in ASP (and related technologies) that is installable off of a CD so executing code on the client machine shouldn't be a problem. However the program would need to go online once a week to download new information in the form of an XML document and place it in the installed programs root directory.

I thought of just accessing the file online and then trying to use VBScript to try and copy the file from the tempory internet files directory but that doesn't seem to be a very good way of doing it.

any ideas?
 
Sorry Ben, it's a software thing. You will need to create a little app using VB, C++, or Visual Foxpro and the like. These can give you the tools you need to access file downloads from the web and with it you have control over where the file is downloaded to. Unfortunately it is a bit of a leap if you don't know any of the main languages.

If you are a top chap you will try to create an activeX dll from your project which does all the stuff you need. That way you can call it from your ASP pages simply once your installation disc has registered the dll
Derren
[The only person in the world to like Word]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top