Answers for "batch file with flags"

0

batch file with flags

FOR %%A IN (%*) DO (
    IF "%%A"=="/r" ECHO You passed the /r flag.
)
Posted by: Guest on September-06-2020
0

batch file with flags

:processargs
SET ARG=%1
IF DEFINED ARG (
    IF "%ARG%"=="/r" ECHO You passed the /r flag.
    SHIFT
    GOTO processargs
)
Posted by: Guest on September-06-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language