Sfor Posted July 19, 2007 Share Posted July 19, 2007 I was using FTP to download some files from batch scripts, so far. But, recently I encountered a problem. Some files are available through HTTP, only.I'm trying to create a new script able to download files using HTTP, this time. But, I do not know what to start from. I can start an URL using START command. But, it will display a dialog asking what folder the file should be saved in. So, I need to find a way to download a file without the confirmation dialog and I need it to be saved in a particular place. Link to comment Share on other sites More sharing options...
gosh Posted July 19, 2007 Share Posted July 19, 2007 could you use a vbs file?-gosh Link to comment Share on other sites More sharing options...
uid0 Posted July 20, 2007 Share Posted July 20, 2007 (edited) http://www.gnu.org/software/wget/Edit: a windows port I use is here:http://gnuwin32.sourceforge.net/packages/wget.htm Edited July 20, 2007 by uid0 Link to comment Share on other sites More sharing options...
jimmsta Posted July 21, 2007 Share Posted July 21, 2007 (edited) Take a look at my download script, and you'll get an idea (it uses wget for windows) - http://www.win9xpp.org/library/w9xppv501.zipThe main file is W9xBuild.bat, and all the URLS files. They are plain-text files with all http/ftp websites that I get my files from. Edited July 21, 2007 by jimmsta Link to comment Share on other sites More sharing options...
Sfor Posted July 21, 2007 Author Share Posted July 21, 2007 The VBS script can be a solution, as well, I think. But, I do not have a skill in the VBS programming.The WGET seems to be a solution, as well. It is within my batch programming skill, also.I'll look in to the WGET a bit closer. Link to comment Share on other sites More sharing options...
Sfor Posted July 21, 2007 Author Share Posted July 21, 2007 What can I say? To put it simply, WGET works as expected. The only downside is, it is not a part of the Windows OS, so I have to keep the EXE with the script. In my particular case it is not a problem. However it can be a problem in some other cases.I'm satisfied with the current solution, for now. Link to comment Share on other sites More sharing options...
Fredledingue Posted July 22, 2007 Share Posted July 22, 2007 Using VBS with w98 native components is perfect for text file download, for example, when you need to extract text or numerical informations. It works also with binary files, such as picture but I wouldn't rely on it for downloading exe files. I can work with exe files but there is a level of uncertainty about that.There is a free component on JSWare to handle downloads with VBS, it's very good.If you are confortable with .bat, use it of course.One last thing: Only through VBS I know a method to launch a batch file or a cmd line in invisible mode. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now