¹èÄ¡ÆÄÀÏ ¹®ÀÇ

Sakura24   
   Á¶È¸ 1019   Ãßõ 0    

쪽팔리면 질문하지 맙시다. 소중한 답변 댓글을 삭제하는건 부끄러운 일 입니다 


@echo off

:repeat

Timeout 5

@tasklist | find "Python.exe" /c > NUL

IF %ErrorLevel%==1 goto 1

IF NOT %ErrorLevel%==1 goto 0

:0

goto repeat

:1

Python frontend.py

goto repeat


%ErrorLevel%은 무었을 의미 하는 건가요?

ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.
HanBitz 05-25
½ÇÇàµÈ ÇÁ·Î±×·¥ÀÇ ¹ÝȯÄÚµåÀÔ´Ï´Ù
     
Sakura24 05-25
°¨»çÇÕ´Ï´Ù!
          
HanBitz 05-25
Á¤È®È÷´Â tasklist·Î °Ë»öÇÑ ½ÇÇàÁßÀÎ ÇÁ·Î¼¼½º Áß pythonÀÌ ÀÖ´ÂÁö(¹ÝȯÄÚµå 0) ¾ø´ÂÁö(¹ÝȯÄÚµå 1) È®ÀÎÇϴ°ÍÀ¸·Î º¸ÀÔ´Ï´Ù
               
Sakura24 05-25
³× ÆÄÀ̽ãÀ¸·Î µ¹´Ù°¡ ¿¡·¯°¡ ¹ß»ýÇÏ¸é ¹Ù·Î ²¨Áö´Âµ¥
ÀÚµ¿À¸·Î ¹èÄ¡ÆÄÀÏ ¸¸µé¾î¼­ ´Ù½Ã ÆÄÀ̽㠵¹¾Æ°¡°Ô Çϴ°ÅÁÒ...
                    
If not ~ goto ÁÙ°ú ·¹À̺í :0´Â ¾ø¾îµµ µÇ°Ú³×¿ä
                         
Sakura24 05-25
@echo off
:repeat
Timeout 5
@tasklist | find "Python.exe" /c > NUL
IF %ErrorLevel%==1 goto 1
goto repeat
:1
Python frontend.py
goto repeat


ÀÌ·¸°Ô ÇÏ¸é µÉ ±î¿ä?
HanBitz 05-25
°£·«È­ ½ÃÄѺýÀ´Ï´Ù
¾Æ¸¶µµ ÀÛµ¿ÇÒ²®´Ï´Ù

@echo off
:repeat
timeout 5
tasklist | find "Python.exe" > nul
if %errorlevel% equ 1 python "frontend.py"
goto repeat
     
Sakura24 05-25
°¨»çÇÕ´Ï´Ù! Àß ÀÛµ¿ Çϳ׿ä!


QnA
Á¦¸ñPage 4120/5654
2015-12   1385851   ¹é¸Þ°¡
2014-05   4841363   Á¤ÀºÁØ1
2020-04   2910   ÀÌÁöÆ÷Åä
2003-07   12134   ÀÌ»ó·æ
2023-03   1804   GPGPU
2009-07   6805   ±èµ¿¼ö(PE)
2020-04   3678   galaxyfamily
2003-07   9414   ¹æ»óÈ£
2012-10   6819   ¹Ì¼Ç
2016-10   5157   ´Ù¿Â
2020-04   2434   °Ü¿ï³ª¹«
2006-03   5716   À̹®Èì
2003-08   8819   ±è¿µÇÏ
2009-09   6002   ÇÔ¹®¼ö
2014-07   4320   ½Ì¾î¼Û¶óÀÌÅÍ
2023-04   1826   tantan11
2015-11   4395   ¸ÚÁø³²ÀÚ
2019-02   3705   »ç¶ûÇ϶ó
2003-08   8297   ¹Úâ¹ü
2019-02   2765   ÇÏ·çÄ«
2020-04   3159   Å×Ã÷
2020-04   4497   À̹®¿µ