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

Sakura24   
   Á¶È¸ 1121   Ãßõ 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 4582/5657
2014-05   4860343   Á¤ÀºÁØ1
2015-12   1405558   ¹é¸Þ°¡
2017-04   4660   Sakura24
2017-04   5021   audacity
2018-07   3083   È£¹Ú°í±¸¸¶
2013-10   5008   ±è°Ç¿ì
2020-12   4443   audacity
2017-04   3301   ±³Á¤±â°ø»ç
2019-09   2449   ¼­¿ïI±èµ¿¼ö
2011-04   6184   Larry
2017-04   3640   ¼ÛÁøÈ«
2020-12   2766   ¿À´ÃºÎÅÍ
2013-11   23241   ±è¹ÎöGC
2020-12   3491   osthek83
2011-05   6352   Ãֽÿµ
2018-08   4599   ¾¾Çü
2016-05   7742   È︶
2011-06   7427   ¹«¾Æ
2016-05   3893   È︶
2022-07   1332   ÀÓÁ¾¿­
2013-11   7471   ´ëÇѹα¹
2022-07   3215   ¹Ì¼ö¸Ç