From 56e06122991ebc8f6820e662f8569e59ada59f3e Mon Sep 17 00:00:00 2001 From: Yuri Slobodyanyuk Date: Thu, 1 Sep 2022 17:35:58 +0300 Subject: [PATCH] Update Windows-cmd-shell-batch-scripting-cheat-sheet.adoc --- ...cmd-shell-batch-scripting-cheat-sheet.adoc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/cheat-sheets/Windows-cmd-shell-batch-scripting-cheat-sheet.adoc b/cheat-sheets/Windows-cmd-shell-batch-scripting-cheat-sheet.adoc index 8a009ce..ec8be15 100644 --- a/cheat-sheets/Windows-cmd-shell-batch-scripting-cheat-sheet.adoc +++ b/cheat-sheets/Windows-cmd-shell-batch-scripting-cheat-sheet.adoc @@ -38,3 +38,22 @@ script, to let users know what the script is doing. |=== + + +== Script arguments +[cols=2, options="header"] +|=== +|Command +|Description + +|%_n_ +|Positional argument to the script from the command line. _n_ can be from 0 to 9. + +|%0 +|The script name. The actual arguments to the script start with %1. +E.g. `echo The script was called as %0, with the %1 as the first argument` + +|%* +|The rest of the positional arguments after the 9th. + +|===