Skip to content

Instantly share code, notes, and snippets.

@teramako
Created May 10, 2011 01:31
Show Gist options
  • Save teramako/963769 to your computer and use it in GitHub Desktop.
Save teramako/963769 to your computer and use it in GitHub Desktop.
ThinkPadのトラックポイントのサービスがたまに動いていない時があり、その場合の対応バッチスクリプト
@echo off
echo "search tp4serv..."
tasklist | find "tp4serv.exe" >nul
if ERRORLEVEL 1 goto run
echo "shutdown tp4serv..."
taskkill /im tp4serv.exe /f >nul
if ERRORLEVEL 1 goto end
:run
echo "restart tp4serv..."
start "tp4serv" "C:\Program Files\Lenovo\TrackPoint\tp4serv.exe"
:end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment