| 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. 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. 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 Quotewhat he is means is virus/trojans with the name notepad.exe. :-? 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-) |
|