Created
April 8, 2021 07:51
-
-
Save rytsikau/f6e9fcb6ad7e9af12e6d9066160b20cb to your computer and use it in GitHub Desktop.
Fast file download with Curl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set OUTPUTFOLDER="d:\downloads" | |
set CURL="c:\Program Files\Curl\curl.exe" | |
set /p URL=Enter URL: | |
set TM=%TIME:~0,2%%TIME:~3,2%%TIME:~6,2% | |
set TM=%TM: =0% | |
set OUTPUT="%OUTPUTFOLDER%\%Date:~6,4%%Date:~3,2%%Date:~0,2%-%TM%.dat" | |
%CURL% -L "%URL%" --remote-time -o %OUTPUT% | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment