Original Post
PC Suite tends to lose my phone. It's there - all other programs can find it, and if I close down everything apart from PC Suite my phone still declares that there's an open Bluetooth connection to my PC. PC Suite thinks otherwise. I've knocked out a simple batch file to kill PC Suite. So far it looks like this:
@ECHO OFF
:LOOP
CLS
TASKKILL /IM "Launch Application 2.exe" /F
TASKKILL /IM PcSync2.exe /F
TASKKILL /IM SERVIC~1.exe /F
TASKKILL /IM DATALA~1.exe /F
TASKKILL /IM MPAPI3s.exe /F
TASKKILL /IM VFSWRA~1.exe /F
ECHO If all tasks report process not found, my work here is done. Hit Ctrl+C
ECHO or close this window.
ECHO Otherwise, hit any other key to try and kill the other processes!
PAUSE
GOTO LOOP The reason I have to loop is that I'm not too good at this sort of thing and if there are 7 DATALA~.exe processes running I need to run TASKKILL on it 7 times. If someone could point out how to use errorlevel, I'd be very happy - the idea was that I would do this: :taskA
TASKKILL /IM "Launch Application 2.exe" /F
if errorlevel 0 goto taskA ...in the aim that it would try and kill the process and if it succeeded to loop around until it fails (all processes with that image name killed), but that doesn't work. However, echo %errorlevel% does return the correct results... Anyway - am I missing any processes there? *shakes fist at PC Suite*