Download and unzip file Batch
Moderator: DosItHelp
Download and unzip file Batch
Hello, can you please tell me how to download and unzip .zip file, I need to install PHP with batch is there possible?
Re: Download and unzip file Batch
can you please get an example of wget download?
Re: Download and unzip file Batch
here is the situation, so i have a few windows machines, i need a simple script that will figure the windows is 64 bit or 86 bit then if it is 64 bit download php archive for 64 bit machine and unzip it ... and if 86 bit download 86 bit php archive file and unzip it... that is possible yes?
BitTransfer is always gives me an error : Start-BitsTransfer : The connection with the server was terminated abnormally
BitTransfer is always gives me an error : Start-BitsTransfer : The connection with the server was terminated abnormally
Re: Download and unzip file Batch
well I have tried many variants and they all give errors:
the connection with the server was terminated abnormally
error code 0x80072efe bitsadmin
why it is so complicated ((
the connection with the server was terminated abnormally
error code 0x80072efe bitsadmin
why it is so complicated ((
Re: Download and unzip file Batch
How can we help you unless you show us the code you are trying to use?
Re: Download and unzip file Batch
Code: Select all
bitsadmin /transfer myDownloadJob /download /priority normal https://windows.php.net/downloads/releases/php-7.3.2-nts-Win32-VC15-x64.zip c:\10mb.zip
Code: Select all
$source = 'https://windows.php.net/downloads/releases/php-7.3.2-nts-Win32-VC15-x64.zip'
$dest = 'c:\php.zip'
$wc = New-Object System.Net.WebClient
$wc.DownloadFile($source, $dest)
end."
Re: Download and unzip file Batch
Default Windows permissions restrict you from writing directly to the root of the system drive. That has been in place since Windows Vista. So like well over 12 years already
Re: Download and unzip file Batch
here is an error that is given by that utility:penpen wrote: ↑10 Feb 2019 14:05ANother option would be using certutil for downloading:
viewtopic.php?f=3&t=8485.
penpen
CertUtil: -URLCache command FAILED: 0x80072efd (WIN32: 12029)
CertUtil: A connection with the server could not be established