Taskkill Problem
Ich schreibe gerade eine Taskkill datei...
Und ich will wenn der Prozess nicht läuft das mann zu :error kommt...
Sie ist sehr einfach also ihr werdet verstehen was sie macht ...
Danke
Thomas
Und ich will wenn der Prozess nicht läuft das mann zu :error kommt...
Sie ist sehr einfach also ihr werdet verstehen was sie macht ...
@echo off
shutdown -a
cls
title Taskkill
:Start
set /p prog=Programmname:
if /i "%prog%"=="help" goto Help
taskkill /IM %prog%.exe
exit
:Help
echo blbal
echo blabla
echo blbla
echo blabla
echo ...
pause
goto start
:error
echo Das Programm %prog% existiert nicht oder ist nicht offen!
echo Geben sie help ein für Hilfe
pause
goto Start
Thomas
Please also mark the comments that contributed to the solution of the article
Content-Key: 67787
Url: https://administrator.de/contentid/67787
Printed on: April 23, 2024 at 09:04 o'clock
2 Comments
Latest comment