Passing Function Arguments - How to pass arguments to the function
Description: | Just as the DOS batch file itself can have arguments, a function can be called with arguments in a similar way. Just list all arguments after the function name in the call command. Use a space or a comma to separate arguments. Use double quotes for string arguments with spaces. | ||
Script: |
|
TOP
2008-01-01
2008-01-01
Parsing Function Arguments - How to retrieve function arguments within the function
Description: | Just as the DOS batch file itself retrieves arguments via %1 … %9 a function can parse it`s arguments the same way. The same rules apply. Let`s modify our previews example to use arguments. To strip of the double quotes in an arguments value the tilde modifier, i.e. use %~2 instead of %2. | ||
Script: |
|
Read full article from DOS Batch - Function Tutorial
No comments:
Post a Comment