how to kill pyplanet-cmd-window?

Python 3 Server Controller for Trackmania and Shootmania for script-only modes.

Moderators: TheM, toffe, NADEO

Post Reply
User avatar
o0Julia0o
Posts: 44
Joined: 11 Jul 2020, 15:20

how to kill pyplanet-cmd-window?

Post 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
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: how to kill pyplanet-cmd-window?

Post by w1lla »

Tried this

taskkill /IM "process name" /F
TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
User avatar
o0Julia0o
Posts: 44
Joined: 11 Jul 2020, 15:20

Re: how to kill pyplanet-cmd-window?

Post 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.
User avatar
TMarc
Posts: 15255
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: how to kill pyplanet-cmd-window?

Post by TMarc »

taskkill is apparently only available with Windows 10.

or your cmd shell does not have the necessary environment (path settings etc.).
User avatar
o0Julia0o
Posts: 44
Joined: 11 Jul 2020, 15:20

Re: how to kill pyplanet-cmd-window?

Post by o0Julia0o »

I am using Windows 10.
User avatar
TMarc
Posts: 15255
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: how to kill pyplanet-cmd-window?

Post by TMarc »

Open a normal windows command, from the start menu, does it work there?
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: how to kill pyplanet-cmd-window?

Post 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
TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
endbase
Posts: 475
Joined: 26 Jun 2011, 19:34

Re: how to kill pyplanet-cmd-window?

Post 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
Post Reply

Return to “PyPlanet”

Who is online

Users browsing this forum: No registered users and 1 guest