Page 1 of 1

how to kill pyplanet-cmd-window?

Posted: 15 Jul 2020, 17:44
by o0Julia0o
i start Pyplanet-CMD-Window with the name: PyPlanet:


How can i kill it with a Windows-batch-file?

This doesn´t work:
taskkill /IM cmd.exe /FI "PyPlanet"
tasklist /FI "PyPlanet" /V

Re: how to kill pyplanet-cmd-window?

Posted: 15 Jul 2020, 18:46
by w1lla
Tried this

taskkill /IM "process name" /F

Re: how to kill pyplanet-cmd-window?

Posted: 15 Jul 2020, 19:04
by o0Julia0o
Thank you. Doesn´t work, either :(

I get:

Code: Select all

the process could not be found


On my tries(above) i am getting:

Code: Select all

error the search filter cannot be recognized
If i try
Python (32 Bit) (2)
or
Pyhton

it doesn´t work, either.

Re: how to kill pyplanet-cmd-window?

Posted: 15 Jul 2020, 19:49
by TMarc
taskkill is apparently only available with Windows 10.

or your cmd shell does not have the necessary environment (path settings etc.).

Re: how to kill pyplanet-cmd-window?

Posted: 15 Jul 2020, 20:01
by o0Julia0o
I am using Windows 10.

Re: how to kill pyplanet-cmd-window?

Posted: 15 Jul 2020, 22:15
by TMarc
Open a normal windows command, from the start menu, does it work there?

Re: how to kill pyplanet-cmd-window?

Posted: 15 Jul 2020, 23:25
by w1lla

Code: Select all

taskkill /FI "WINDOWTITLE eq pyplanet*" /F
but it will kill anything with the title of pyplanet.....


This is the batch i use in pyplanet.bat

Code: Select all

@echo off
TITLE pyplanet
cd c:/tmn/pyplanet
python manage.py start

Re: how to kill pyplanet-cmd-window?

Posted: 16 Jul 2020, 05:19
by endbase
personaly I start with this it will minimize the cmd with start pyplanet if you kill the cmd it kills the pyplanet proces

@echo off

TITLE PyPlanet
SET me=%~n0
SET parent=%~dp0
if not "%minimized%"=="" goto :minimized
set minimized=true
start /min cmd /C "%~dpnx0"
goto :EOF
:minimized


call env\scripts\activate.bat

manage.py start
pause