First, I want to thank you again for replying to my posting. :o)
I tried your recommendation and it did not work. As a result, I chose to investigate further where I discovered that Windows XP does not include the TASKKILL program - it appears to be available for Vista users, however, I have no interest in Vista at this time.
Next, a Google search or two produced a hit that detailed a Windows XP program called TSKILL and I found it in my C:Windows\system32 directory. Then, I opened a CMD window to review the syntax, where I found...
C:\>tskill /?
Ends a process.
TSKILL processid | processname [/SERVER:servername] [/ID:sessionid | /A] [/V]
processid Process ID for the process to be terminated.
processname Process name to be terminated.
/SERVER:servername Server containing processID (default is current).
/ID or /A must be specified when using processname
and /SERVER
/ID:sessionid End process running under the specified session.
/A End process running under ALL sessions.
/V Display information about actions being performed.
C:\>
After opening Windows Task Manager:
- under the Processes tab, I found the PID and Image Name [aka the Process that I wish to end or terminate], and therefore knew what to type in for
"processid" and "processname" but was not sure if the | character was required.
- under the Users tab, I found User, ID, Status, Client Name, and Session, but they are all blank and therefore could not determine what to type in for [/SERVER:servername] [/ID:sessionid | (again not knowing if this | character was required) but felt that the /A was the appropriate switch to use.
Given the unknowns described above, I tried the following batch file commands...
TSKILL 2476 | sidebar.exe | /A
- where sidebar.exe was the Image Name of the exe of the program I wanted to close. After a brief screen flash, it did not work.
TSKILL 2476 | sidebar | /A
- did not work.
TSKILL 2476 sidebar.exe /A
- did not work.
TSKILL 2476 sidebar /A
- did not work.
TSKILL 2476 /A
- did not work.
TSKILL 2476
- did not work.
TSKILL sidebar.exe
- did not work.
TSKILL sidebar
- did not work.
TSKILL "C:\Program Files\sidebar.exe"
- did not work.
TSKILL "C:\Program Files\sidebar"
- did not work.
Since I am a Windows XP Home Edition user, while I do have the LanmanServer service [aka Server] fully enabled to startup automatically, I am not on a Server and that may be why, Windows Task Manager / Users tab, User, ID, Status, Client Name, and Session display no information. And, while I do not know if this | character is required, it appears that the [/SERVER:servername] [/ID:sessionid may be required to make TSKILL work properly.
Using the 'Help and Support' option in Windows XP, I searched the term "servername" and read about Mapping Network Drives. While this may be relevant, as a stand alone PC user, it confuses me and therefore I chose not to investigate it further.
I shall continue to investigate the TSKILL program, but, for now I am out of ideas.
Thanks again, Shane!!
CurlySue
P.S. I also do not have TASKLIST and (referring to
http://www.microsoft.com/downloads/details.aspx?FamilyId=49AE8576-9BB9-4126-9761-BA8011FABF38&displaylang=en) it appears that it is not a Windows XP SP2 program.
P.S.S. Sadly, after several trials, it also appears that TSKILL is totally ineffective at ending any process. This is quite puzzling given the additional education I discovered at
http://commandwindows.com/taskkill.htmUPDATE
Well, I found a reference to TSKILL which lead me to believe that I needed to enable Terminal Services. After setting TermService to manual and starting the service, I ran "TSKILL sidebar" (without quotes) and it WORKED!
At this point, I am not comfortable with the Schedule (and) or TermService service(s) running when I do not require TSKILL. To resolve this, I created a batch file to enable them both prior to running requiring TSKILL to shutdown "sidebar" (One Touch Video Capture, in this case)...
startTERMSERVICE.bat
------------------------------------
sc config Schedule start= demand
sc start Schedule
sc config TermService start= demand
sc start TermService
cls
Next, I revised the batch file that executes TSKILL to stop both Schedule and or TermService services as follows...
closeSIDEBAR.bat
----------------------------
TSKILL sidebar
sc stop TermService
sc config TermService start= disabled
sc stop Schedule
cls
Last, at the conclusion of adding the Scheduled Task (One time only), I check the box to 'Open advance properties...' and under the Settings tab I check 'Delete the task if it is not scheduled to run again' and uncheck 'Stop the task...' and click OK.
While this method is a bit cumbersome, it appears to work properly and that is GREAT for me!! A program that achieves the same would be nice, but I am happy to use this method since it works and satisfies my objective.
That's my update for now, Shane!
Thanks again!!
CurlySue