Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 813989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T01:26:58+00:00 2026-05-15T01:26:58+00:00

How to create a .BAT file to download and unpack a zip file from

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T01:26:58+00:00Added an answer on May 15, 2026 at 1:26 am

    Try this hybrid bat/vbs script

    @echo off
     > %temp%\~tmp.vbs echo sUrl = "http://www.unicontsoft.com/file.zip"
    >> %temp%\~tmp.vbs echo sFolder = "c:\temp\unzip"
    >> %temp%\~tmp.vbs (findstr "'--VBS" "%0" | findstr /v "findstr")
    cscript //nologo %temp%\~tmp.vbs
    del /q %temp%\~tmp.vbs
    goto :eof
    
    '--- figure out temp file & folder
    With CreateObject("WScript.Shell")  '--VBS
        sTempFile = .Environment("Process").Item("TEMP") & "\file.zip"  '--VBS 
        sTempFolder = .Environment("Process").Item("TEMP") & "\file.zip.extracted"  '--VBS
    End With    '--VBS
    
    '--- download
    WiTh CreateObject("MSXML2.XMLHTTP") '--VBS
        .Open "GET", sUrl, false    '--VBS
        .Send() '--VBS
        If .Status = 200 Then   '--VBS
            ResponseBody = .ResponseBody    '--VBS
            With Createobject("Scripting.FileSystemObject") '--VBS
                If .FileExists(sTempFile) Then  '--VBS
                    .DeleteFile sTempFile   '--VBS
                End If  '--VBS
            End With    '--VBS
            With CreateObject("ADODB.Stream")   '--VBS
                .Open   '--VBS
                .Type = 1 ' adTypeBinary    '--VBS
                .Write ResponseBody '--VBS
                .Position = 0   '--VBS
                .SaveToFile sTempFile   '--VBS
            End With    '--VBS
        End If  '--VBS
    End With    '--VBS
    
    '--- extract
    With CreateObject("Scripting.FileSystemObject") '--VBS
        On Error Resume Next    '--VBS
        .CreateFolder sFolder   '--VBS
        .DeleteFolder sTempFolder, True '--VBS
        .CreateFolder sTempFolder   '--VBS
        On Error GoTo 0 '--VBS
        With CreateObject("Shell.Application")  '--VBS
            .NameSpace(sTempFolder).CopyHere .NameSpace(sTempFile).Items    '--VBS
        End With    '--VBS
        .CopyFolder sTempFolder, sFolder, True  '--VBS
        .DeleteFolder sTempFile, True   '--VBS
        .DeleteFile sTempFile, True '--VBS
    End With    '--VBS
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to create a .BAT file to download file or folder from FTP server?
I have to create a .BAT file that does this: If C:\myprogram\sync\data.handler exists, exit;
In Windows I would create a .bat file to run this script from my
I am trying to create a .bat file that starts the ASP.NET Dev Server
i have a batch(backup.bat)file.in that i have written a command to create a backup
I have a small utility that I use to download an MP3 file from
I need to create a .bat file to run java program. I have a
I'm trying to create a .bat file to execute a flash video on a
I have a file with a list of string (one cloumn). File example sdfsdfsdf
Is it possible to unzip .ZIP file using .BAT command on Windows XP? we

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.