Created
December 16, 2016 22:46
-
-
Save nucular/9e998e217549986c13c21dea55a3936c to your computer and use it in GitHub Desktop.
Batch file to fix your Wacom driver after it broke again
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 |
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
You are a hero <3