issue running a batch script to kill a process
- by user657064
I am using the following script on a command line to kill a hypothetical notepad process (using a Korn shell in Windows XP, if that matters):
kill $(tasklist | grep -i notepad.exe | awk '{print 2}')
Now I take this line, and put it into a batch file c:\temp\testkill.bat, thinking that I should just as well be able to kill the process by…