Created
November 21, 2014 12:14
-
-
Save hiiru/80939b47ec55dfe3aa41 to your computer and use it in GitHub Desktop.
Windows batch %* example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Temp>test.cmd "i'm the first" followed and futher "things here" | |
First arg: "i'm the first" | |
2nd arg: followed | |
all args: "i'm the first" followed and futher "things here" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
echo First arg: %1 | |
echo 2nd arg: %2 | |
echo all args: %* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment