SHARE
TWEET

Two.bat

a guest May 29th, 2016 1,381 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2.  
  3. :: Save this batch as Two.bat and place it in your home directory (Usually C:\)
  4.  
  5. set path=%path%;c:\windows\system32;c:\windows
  6. set zLog="C:\Windows\Logs\Oculus.log"
  7.  
  8. ECHO.>> %zLog%
  9. ECHO ------------------------------------------------>> %zLog%
  10. ECHO %DATE%    %TIME%   -   Starting Oculus Script...    >> %zLog%
  11. ECHO ------------------------------------------------>> %zLog%
  12.  
  13. Echo %DATE% %TIME%  -    Stopping Services... >> %zLog%
  14. net stop OVRService >> %zLog% 2>>&1
  15. Echo %DATE% %TIME%  -    Services Stopped... (Errorlevel %zErr% ) >> %zLog%
  16.  
  17. Echo %DATE% %TIME%  -    Updating registry with compliant processor... >> %zLog%
  18. reg add "HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0" /v ProcessorNameString /t REG_SZ /d "Intel(R) Core(TM) i7-4770K CPU @ 3.90GHz" /f
  19. Echo %DATE% %TIME%  -    Registry edit completed... (Errorlevel %zErr% ) >> %zLog%
  20.  
  21. Echo %DATE% %TIME%  -    Starting Services... >> %zLog%
  22. net start OVRService >> %zLog% 2>>&1
  23. Echo %DATE% %TIME%  -    Services Stopped... (Errorlevel %zzErr% ) >> %zLog%
  24.  
  25. ECHO -------------------------------------------------------------------->> %zLog%
  26. ECHO %DATE% %TIME%  -   Stopping Oculus Script...  (Errorlevel %zErr% ) >> %zLog%
  27. ECHO -------------------------------------------------------------------->> %zLog%
  28. ECHO.>> %zLog%
  29.  
  30. exit %zErr%
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top