Download via Batch-Script

Using batch script to automatically download files from a luckycloud link.

If you want to use a batch script to download a file from your cloud storage, you can use the following solution:

Using: Invoke-WebRequest '%url%' -OutFile '%FilePath%\file.zipdl=1 and the link with appended "dl=1" it is possible to download a specific file.

This is only possible with a fixed link to the file and not with a changing file in a fixed folder.

The solution is completely possible with board means from Win10 or from PowerShellVersion 5. For Win7 or Win8/8.1 Windows Management Framwork 5.1 must be installed. Then it runs also on older systems.

On some (especially older) systems the SecurityProtocol must be changed to Tls12 for the Invoke-Request. This is possible with: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12.