From 9a6089289dd3df344ff3acbedcd10c578ade3707 Mon Sep 17 00:00:00 2001 From: Egbert Teeselink <703546+eteeselink@users.noreply.github.com> Date: Wed, 11 Oct 2017 10:21:10 +0200 Subject: [PATCH] Add "Windows support" to README Added a section that explains how to get the `transfer` alias on Windows. --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index a3d0e91..1b8fc04 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,19 @@ alias transfer=transfer $ transfer test.txt ``` +### On Windows + +Download [curl](https://curl.haxx.se/download.html). Then, put a file called transfer.cmd somewhere in your PATH with this inside it: +``` +@echo off +setlocal +:: write to output to tmpfile because of progress bar +set tmpfile=%TEMP%\~%~nx1.transfer +curl --progress-bar --upload-file %1 https://transfer.sh/%~nx1 >> %tmpfile% +type %tmpfile% +del %tmpfile% +``` + ## Usage Parameter | Description | Value | Env