informatique:windows:batch
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
informatique:windows:batch [2019/10/04 10:15] – yahiko | informatique:windows:batch [2019/10/04 13:45] – yahiko | ||
---|---|---|---|
Line 186: | Line 186: | ||
<codedoc code: | <codedoc code: | ||
FORFILES /P " | FORFILES /P " | ||
+ | </ | ||
+ | |||
+ | ==== Tuer un processus ==== | ||
+ | <codedoc code: | ||
+ | TASKKILL /F /IM processus.exe | ||
+ | </ | ||
+ | |||
+ | Du coup, on peut faire un truc du genre : | ||
+ | |||
+ | <codedoc code: | ||
+ | TASKLIST /FI " | ||
+ | IF " | ||
+ | TASKKILL /F /IM machin.exe > NUL | ||
+ | ) ELSE ( | ||
+ | ECHO Machin pas lancé n'est pas lancé. | ||
+ | ) | ||
</ | </ |
informatique/windows/batch.txt · Last modified: 2023/09/14 08:46 by yahiko