瀏覽代碼

Improve Windows support in README following CR

tags/v1.0.0
Egbert Teeselink 5 年之前
父節點
當前提交
2e3d5594a4
共有 1 個檔案被更改,包括 4 行新增5 行删除
  1. +4
    -5
      README.md

+ 4
- 5
README.md 查看文件

@@ -40,11 +40,10 @@ Download [curl](https://curl.haxx.se/download.html). Then, put a file called tra
```
@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%
:: 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


Loading…
取消
儲存