1.

Solve : Close notepad.exe - taskkil??

Answer»

Does anybody knows the command to close notepad in windows xp. On the site from microsoft they reccomand taskkil (http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?mfr=true) but if I use that, I get an error of unknown command or something. Can anybody give me the right code or EXPLAIN how it really works, because I don't understand a lot of microsofts explenationWin2000 had a Kill command. Taskkill shipped with WinXp Pro and Win2003. It did not ship with WinXP Home which may explain why you get an error of unknown command or something.

You can download the program from Taskkill

The usual way to run it is:

taskkill /IM programname

although there are filter options and options to run against remote machines.

Good LUCK. 8-)

Of course there is ALWAYS the possibility that you do have the command but it doesn't live on the system path.
do you mean notepad.exe the spyware, or what?Notepad is part of Windows. Check it out. How come u don't know that??what he is means is virus/trojans with the name notepad.exe.ok, he probably does not know what hes talking about. hes my friend.Quote

Win2000 had a Kill command. Taskkill shipped with WinXp Pro and Win2003. It did not ship with WinXP Home which may explain why you get an error of unknown command or something.

You can download the program from Taskkill

The usual way to run it is:

taskkill /im programname

although there are filter options and options to run against remote machines.

Good luck. 8-)
Of course there is always the possibility that you do have the command but it doesn't live on the system path.

OK, that explained why it was in the list and why it didn't work on my computer. You're totally right! Now, I liked to work on both computers so how should I do that. Something like this?

Code: [Select]if %os%=="windows xp progrofessional" goto prof
if %os%=="windows xp home" goto home
:prof
taskkill /im notepad
:home
kill /im notepadQuote
what he is means is virus/trojans with the name notepad.exe.


*censored*, don't be difficult... I just want to learn the command, so it doesn't mather wich program I close. If it would be a virus this command wouldn't be able to close it anyway... Notepad is a simple text editor that I use to type my batfiles in...Quote
Quote
what he is means is virus/trojans with the name notepad.exe.


*censored*, don't be difficult... I just want to learn the command, so it doesn't mather wich program I close. If it would be a virus this command wouldn't be able to close it anyway... Notepad is a simple text editor that I use to type my batfiles in...


:-? i was referring to dimitri...not youLike I said Kill shipped with Win2000 not WinXP Home. Either download Taskkill to your Home machine or use tskill which apparently shipped with both Home and Pro versions of XP. You can get DETAILS by typing tskill /? at a command prompt.

Afterthought: You cannot use the %os% variable to distinguish between the Home and Pro versions of XP. In both cases Windows_NT is returned.

8-)


Discussion

No Comment Found