B
brett
I'd like to use something similar to:
my.bat ui
for the following batch file.
@echo on
SET programToRun=%1
IF [/I] [%programToRun%] == []
(
@echo "stopped in wrong right place"
)
ELSE
(
IF [/I] [%programToRun%] == ["ui"]
)
@echo "stopped in right place"
))
However, the output is:
C:\TEST>SET programToRun=ui
[ui] was unexpected at this time.
C:\TEST>IF [/I] [ui] == []
What am I doing wrong?
I use the last IF since there will different parameters. I will have
an IF for each possible parameter, since there doesn't seem to be an
IF...ELSE IF.
Thanks,
Brett
my.bat ui
for the following batch file.
@echo on
SET programToRun=%1
IF [/I] [%programToRun%] == []
(
@echo "stopped in wrong right place"
)
ELSE
(
IF [/I] [%programToRun%] == ["ui"]
)
@echo "stopped in right place"
))
However, the output is:
C:\TEST>SET programToRun=ui
[ui] was unexpected at this time.
C:\TEST>IF [/I] [ui] == []
What am I doing wrong?
I use the last IF since there will different parameters. I will have
an IF for each possible parameter, since there doesn't seem to be an
IF...ELSE IF.
Thanks,
Brett