문제

If you have a remark before the end of a block it gives a error. ) was unexpected at this time

example code:

@echo off
set x=1
if %x% == 1 (
    set y=4
    set z=5
::Hello world
)

Does any one know way it has this error?

올바른 솔루션이 없습니다

다른 팁

You cannot use :: for remarks when inside brackets (). You must instead use REM

@echo off
set x=1
if %x% == 1 (
    set y=4
    set z=5
rem Hello world
)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top