Skip to content
Myr

read-arguments.cmd

This file

Path

test/fixtures/read-arguments.cmd

5 lines · 69 bytes

Last changed by

Fix arguments of Windows batch files that read them with `%~1`Sindre Sorhusbefore adoption93bddc4

History of this file

Take it

Fix arguments of Windows batch files that read them with `%~1`Sindre Sorhusbefore adoption93bddc4

lines 1–5why, one step back
1@ECHO off
2ECHO first is %13IF "%~1" == "-f" (4 ECHO file is "%~2"5)