Guest User

Drive to Office

a guest
Sep 19th, 2014
280
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. echo Welcome to Drive to Office! This script is made by Daniel Liland (aka ende124).
  3. echo You need Office 2013 to use this.
  4. echo.
  5. echo Last Updated 19.09.2014
  6. pause
  7.  
  8. echo.
  9. echo Specify the root of your Google Drive directory.
  10. echo You must have Google Drive installed on your PC for this to work.
  11. echo It should look like this: C:\Users\[username]\Google Drive
  12. set /p drivedir=Drive Directory:
  13.  
  14. echo.
  15. echo We will now start adding Google Drive to your Office.
  16. pause
  17.  
  18. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\4a57d3d0-50e6-4e10-a30e-f5c5540a8db1" /v DisplayName /t REG_SZ /d "Google Drive"
  19. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\4a57d3d0-50e6-4e10-a30e-f5c5540a8db1" /v Description /t REG_SZ /d "Save your files to Google Drive!"
  20. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\4a57d3d0-50e6-4e10-a30e-f5c5540a8db1" /v LearnMoreURL /t REG_SZ /d "http://drive.google.com/"
  21. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\4a57d3d0-50e6-4e10-a30e-f5c5540a8db1" /v ManageURL /t REG_SZ /d "http://drive.google.com/"
  22. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\4a57d3d0-50e6-4e10-a30e-f5c5540a8db1" /v Url48x48 /t REG_SZ /d "https://developers.google.com/drive/images/drive_icon.png"
  23. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\4a57d3d0-50e6-4e10-a30e-f5c5540a8db1" /v LocalFolderRoot /t REG_SZ /d "%drivedir%"
  24. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\4a57d3d0-50e6-4e10-a30e-f5c5540a8db1\Thumbnails" /v Url48x48 /t REG_SZ /d "https://developers.google.com/drive/images/drive_icon.png"
  25. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\4a57d3d0-50e6-4e10-a30e-f5c5540a8db1\Thumbnails" /v Url40x40 /t REG_SZ /d "https://googledrive.com/host/0B2l-M0lJQdVvUmRCTWZ6MHhjWkE/Url40x40.png"
  26. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\4a57d3d0-50e6-4e10-a30e-f5c5540a8db1\Thumbnails" /v Url32x32 /t REG_SZ /d "https://googledrive.com/host/0B2l-M0lJQdVvUmRCTWZ6MHhjWkE/Url32x32.png"
  27. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\4a57d3d0-50e6-4e10-a30e-f5c5540a8db1\Thumbnails" /v Url24x24 /t REG_SZ /d "https://googledrive.com/host/0B2l-M0lJQdVvUmRCTWZ6MHhjWkE/Url24x24.png"
  28. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\4a57d3d0-50e6-4e10-a30e-f5c5540a8db1\Thumbnails" /v Url20x20 /t REG_SZ /d "https://googledrive.com/host/0B2l-M0lJQdVvUmRCTWZ6MHhjWkE/Url20x20.png"
  29. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\4a57d3d0-50e6-4e10-a30e-f5c5540a8db1\Thumbnails" /v Url16x16 /t REG_SZ /d "https://googledrive.com/host/0B2l-M0lJQdVvUmRCTWZ6MHhjWkE/Url16x16.png"
  30.  
  31. echo.
  32. echo Script finished!
  33. echo.
  34. echo Now add Google Drive to your cloud storage in Office and enjoy!
  35. echo.
  36. echo Something went wrong?
  37. echo Email me at danielsen2000@gmail.com
  38. echo.
  39.  
  40. pause
RAW Paste Data