pipe binary mode
Posted: 29 Apr 2024 03:05
Trying to contruct command which download and unzip set of files in following manner:
but some archive files missing in extracted structure. Suspect Windows Defender, but its log display nothing. What could be wrong? Does windows pipe support binary mode at all?
Now using following workaround with temp file, but I did like to avoid it.
Code: Select all
curl.exe -o- "https://host.com/release/file.zip" | tar.exe -xf - -C "C:\work\target_dir"
Now using following workaround with temp file, but I did like to avoid it.
Code: Select all
curl.exe -o "%temp%\file.zip" "https://host.com/release/file.zip" && tar.exe -xf "%temp%\file.zip" -C "C:\work\target_dir"