Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

batch file with flags

:processargs
SET ARG=%1
IF DEFINED ARG (
    IF "%ARG%"=="/r" ECHO You passed the /r flag.
    SHIFT
    GOTO processargs
)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #batch #file #flags
ADD COMMENT
Topic
Name
6+8 =