windows_batch_scripting
This is an old revision of the document!
Table of Contents
Windows Batch Scripting
The Wikibook
Tricks
How to find if a string is in a list of strings in a DOS batch file
setlocal EnableDelayedExpansion set arg[1]=validArgument1 set arg[2]=validArgument2 set arg[3]=validArgument3 for /L %%i in (1,1,3) do if /I "%1" equ "!arg[%%i]!" SET "ARG=!arg[%%i]!"
windows_batch_scripting.1426149467.txt.gz · Last modified: by zertrin
