瀏覽代碼

Merge pull request #97 from eteeselink/patch-1

Add "Windows support" to README
tags/v1.0.0
Andrea Spacca 5 年之前
committed by GitHub
父節點
當前提交
2bab1af80f
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 12 行新增0 行删除
  1. +12
    -0
      README.md

+ 12
- 0
README.md 查看文件

@@ -34,6 +34,18 @@ alias transfer=transfer
$ transfer test.txt
```

### On Windows

Put a file called transfer.cmd somewhere in your PATH with this inside it:
```
@echo off
setlocal
:: use env vars to pass names to PS, to avoid escaping issues
set FN=%~nx1
set FULL=%1
powershell -noprofile -command "$(Invoke-Webrequest -Method put -Infile $Env:FULL https://transfer.sh/$Env:FN).Content"
```

## Usage

Parameter | Description | Value | Env


Loading…
取消
儲存