Skip to content

Instantly share code, notes, and snippets.

@nucular
Created December 16, 2016 22:46
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nucular/9e998e217549986c13c21dea55a3936c to your computer and use it in GitHub Desktop.
Save nucular/9e998e217549986c13c21dea55a3936c to your computer and use it in GitHub Desktop.
Batch file to fix your Wacom driver after it broke again
@echo off
:checkPrivileges
echo Checking for privileges
net file 1>nul 2>nul
if '%errorlevel%' == '0' (
goto gotPrivileges
) else (
echo Requesting privileges (script will execute in new window)
powershell "saps -filepath %0 -verb runas" >nul 2>&1
)
exit /b
:gotPrivileges
echo Stopping Wacom service
net stop WTabletServicePro
echo Killing Wacom process trees
taskkill /F /T /IM WTabletServicePro.exe
taskkill /F /T /IM WacomHost.exe
echo Starting Wacom service
net start WTabletServicePro
echo Done
@james-bern
Copy link

You are a hero <3

@AndreiDespinoiu
Copy link

If you add a pause at the end it says:

ERROR: The process "WTabletServicePro.exe" not found.
ERROR: The process "WacomHost.exe" not found.

Meaning lines 18 and 19 can probably be safely removed. Other than that, it works perfectly fine. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment