how to close and start a program from cmd in Windows XP?

0

I've been trying cmd commands such as "taskkill" on Windows XP and apparently they don't exist.

I'd like to be able to close and open a program from the cmd because I need to connect to the Windows XP through a Telnet connection. Does anyone know how I can do this?

Natiya

Posted 2018-10-30T11:05:23.413

Reputation: 179

Answers

1

taskkill is not available in Windows XP Home systems. You should use tskill instead.

SOURCE

Mokubai

Posted 2018-10-30T11:05:23.413

Reputation: 64 434

When using interactively, an important difference is that taskill without the /f option is capable of sending WM_CLOSE to cleanly exit the program; tskill goes straight for the kill. – user1686 – 2018-10-30T14:14:49.127

I get the same message saying that tskill is not recognized as an internal or external command, etc. Maybe I need to enable something? Also, to do this, I would need the PID and a way to get that PID from the cmd, which I also don't know for Windows XP. – Natiya – 2018-10-30T15:31:19.213

@itd exactly what edition and versions of Windows XP are you using? Are they Home or Pro? Are they up to date with latest service packs installed? – Mokubai – 2018-10-30T15:37:08.250

@Mokubai it's Windows XP Embedded, version 2002, service pack 2... – Natiya – 2018-10-31T12:10:51.817

@itd that information should be in your question as it is crucial. IIRC XPe can be configured to leave out pretty much all unnecessary tools so all bets are off concerning what should be available. You might have to upload your own tools to do the job. – Mokubai – 2018-10-31T13:42:52.273

0

I believe to start a programme in cmd in XP is the same as later versions of Windows: Change the directory and run the programme: For instance: You have a programme called TSpin.exe under: c:\MyApps

cd c:\MyApps
TSpin.exe

I saw somewhere else mentioning another way of starting a programme in XP:

subfolder\program to run.exe

I've not tried this myself.

RT2709

Posted 2018-10-30T11:05:23.413

Reputation: 320