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

Sakura24   
   Á¶È¸ 1480   Ãßõ 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 2024-05
½ÇÇàµÈ ÇÁ·Î±×·¥ÀÇ ¹ÝȯÄÚµåÀÔ´Ï´Ù
     
Sakura24 2024-05
°¨»çÇÕ´Ï´Ù!
          
HanBitz 2024-05
Á¤È®È÷´Â tasklist·Î °Ë»öÇÑ ½ÇÇàÁßÀÎ ÇÁ·Î¼¼½º Áß pythonÀÌ ÀÖ´ÂÁö(¹ÝȯÄÚµå 0) ¾ø´ÂÁö(¹ÝȯÄÚµå 1) È®ÀÎÇϴ°ÍÀ¸·Î º¸ÀÔ´Ï´Ù
               
Sakura24 2024-05
³× ÆÄÀ̽ãÀ¸·Î µ¹´Ù°¡ ¿¡·¯°¡ ¹ß»ýÇÏ¸é ¹Ù·Î ²¨Áö´Âµ¥
ÀÚµ¿À¸·Î ¹èÄ¡ÆÄÀÏ ¸¸µé¾î¼­ ´Ù½Ã ÆÄÀ̽㠵¹¾Æ°¡°Ô Çϴ°ÅÁÒ...
                    
If not ~ goto ÁÙ°ú ·¹À̺í :0´Â ¾ø¾îµµ µÇ°Ú³×¿ä
                         
Sakura24 2024-05
@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 2024-05
°£·«È­ ½ÃÄѺýÀ´Ï´Ù
¾Æ¸¶µµ ÀÛµ¿ÇÒ²®´Ï´Ù

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


QnA
Á¦¸ñPage 108/5702
2015-12   1652519   ¹é¸Þ°¡
2014-05   5117061   Á¤ÀºÁØ1
2002-05   16585   ÀÌ¿øº¹
2002-05   16582   Á¤Àιè
2013-09   16580   Á¦»óÇö
2017-12   16570   Ãʺ¸IT
2013-08   16568   ÃÑ°¢
2014-07   16566   ¾Ç¶¥
2002-05   16562   ±èÀç½Ä
2010-09   16558   song05
2002-06   16558   ±èµ¿¿í
2014-01   16557   Á¶¸í¼ö
2011-01   16556   Á¤º´°ï
2017-11   16555   ³ª¶ó»ç¶û
2012-01   16549   À±Ä¡¿­
2002-05   16547   Á¶¿øºó
2015-08   16545   ºí·¢Ä¿ÇÇ
2002-05   16545   Á¤ÁØÈ£
2009-12   16542   ³²¼º·æ
2014-10   16540   °Ü¿ï³ª¹«
2013-05   16540   ¼­¿ïI±èµ¿¼ö
2002-05   16538   Á¤Å¼º