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

Sakura24   
   Á¶È¸ 573   Ãßõ 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 6/145
2023-06   1383   ÀÌâÁØ
2023-06   2250   ½ÅÀº¿Ö
2023-05   1790   ÁÒ½´¾Æ
2023-05   1370   ¹Ú¹®Çü
2023-05   1497   AplPEC
2023-05   1897   ·¹º¼·ç¼Ç
2023-05   1936   drama
2023-05   2006   grzlr
2023-05   1508   supsup
2023-04   3408   ¹Ì¼ö¸Ç
2023-04   1580   ¼ÒǪ
2023-04   1499   Larry
2023-04   1190   ¶Ñ¶Ñ±è´ë¿ø
2023-04   1706   ÃÖÀ翵
2023-04   1336   °¡¿Â´©¸®I°­¡¦
2023-03   1708   ÀϹÝÀ¯Àú
2023-03   1449   Àü¼³¼ÓÀǹ̡¦
2023-03   1035   ÀϹÝÀ¯Àú
2023-03   1772   ¸ð½º¿ùµå
2023-03   1463   Initu2