How to create a .BAT file to download and unpack a zip file from HTTP server?
We have links like http://example.com/folder.zip
and absolute folder link like C:\Users\UserName\Some mixed Русский English Adress\
if files from zip exist in directory owerrite them.
using only native windows (xp vista win7 etc) BAT functions and files.
Could you add code example, please.
If you really want to use a bat-file you may have a look at: http://www.chami.com/tips/windows/062598W.html
The batch file will use a command-line-tools called: URL2File
EDIT: Your batch file should look something like (you need to have pkunzip or another cmd-line tool (7-zip f.e.) installed for that)
Since Windows 7 includes Powershell IMHO, you could use this powershell script: http://bwain-dump.blogspot.com/2009/01/powershell-script-to-unzip-many-files.html
If not powershell then, I think, there is no native way of doing it. You may go for a zip utility that provides command line eg 7-zip
Try this hybrid bat/vbs script
download_and_unzip.bat:
Download
folder.zip
to the current dir (or any other - must exist). Extractfolder.zip
tofolder/to/extract
(created automatically).You can use curl to download the files.
The manual includes several examples