Advertisement
vinhnam25

Drive

Nov 16th, 2013
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.16 KB | None | 0 0
  1. @ECHO OFF
  2. ECHO This file modifies the registry in Windows 7 or 8 to add Google Drive as a service within Office 2013
  3. ECHO This script is provided as is and no warranty or support of any form is offered.
  4. ECHO Original Script created by Philip P. from Dropbox, Remastered by RedeyeGT
  5. pause Do you want to continue?
  6.  
  7. ECHO Please enter the complete path your Google Drive folder in the following format, note there is no end slash: C:\Users\Username\Location
  8. SET /P gdrivedir=[promptString]
  9.  
  10. REM Check Windows Version
  11. ver | findstr /i "5\.0\." > nul
  12. IF %ERRORLEVEL% EQU 0 goto ver_2000
  13. ver | findstr /i "5\.1\." > nul
  14. IF %ERRORLEVEL% EQU 0 goto ver_XP
  15. ver | findstr /i "5\.2\." > nul
  16. IF %ERRORLEVEL% EQU 0 goto ver_2003
  17. ver | findstr /i "6\.0\." > nul
  18. IF %ERRORLEVEL% EQU 0 goto ver_Vista
  19. ver | findstr /i "6\.1\." > nul
  20. IF %ERRORLEVEL% EQU 0 goto ver_Win7
  21. ver | findstr /i "6\.2\." > nul
  22. IF %ERRORLEVEL% EQU 0 goto ver_Win8
  23. goto warn_and_exit
  24.  
  25. :ver_Win8
  26. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66"
  27. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66" /v "DisplayName" /t REG_SZ /d "Google Drive"
  28. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66" /v "Description" /t REG_SZ /d "Google Drive is a free service that lets you bring all your photos, docs, and videos anywhere."
  29. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66" /v "Url48x48" /t REG_SZ /d "http://k37.kn3.net/7DDDA8544.png"
  30. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66" /v "LearnMoreURL" /t REG_SZ /d "https://drive.google.com/"
  31. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66" /v "ManageURL" /t REG_SZ /d "https://drive.google.com"
  32. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66" /v "LocalFolderRoot" /t REG_SZ /d "%gdrivedir%"
  33. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66\Thumbnails"
  34. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66\Thumbnails" /v "Url48x48" /t REG_SZ /d "http://k37.kn3.net/7DDDA8544.png"
  35. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66\Thumbnails" /v "Url40x40" /t REG_SZ /d "http://k35.kn3.net/AA5EBCDA4.png"
  36. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66\Thumbnails" /v "Url32x32" /t REG_SZ /d "http://k31.kn3.net/022B096E1.png"
  37. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66\Thumbnails" /v "Url24x24" /t REG_SZ /d "http://k35.kn3.net/397FB33CC.png"
  38. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66\Thumbnails" /v "Url20x20" /t REG_SZ /d "http://k35.kn3.net/397FB33CC.png"
  39. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66\Thumbnails" /v "Url16x16" /t REG_SZ /d "http://k43.kn3.net/E5162FC3D.png"
  40. goto end
  41.  
  42. :ver_Win7
  43. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66"
  44. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66" /v "DisplayName" /t REG_SZ /d "Google Drive"
  45. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66" /v "Description" /t REG_SZ /d "Google Drive is a free service that lets you bring all your photos, docs, and videos anywhere."
  46. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66" /v "Url48x48" /t REG_SZ /d "http://k37.kn3.net/7DDDA8544.png"
  47. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66" /v "LearnMoreURL" /t REG_SZ /d "https://drive.google.com/"
  48. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66" /v "ManageURL" /t REG_SZ /d "https://drive.google.com"
  49. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66" /v "LocalFolderRoot" /t REG_SZ /d "%gdrivedir%"
  50. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66\Thumbnails"
  51. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66\Thumbnails" /v "Url48x48" /t REG_SZ /d "http://k37.kn3.net/7DDDA8544.png"
  52. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66\Thumbnails" /v "Url40x40" /t REG_SZ /d "http://k35.kn3.net/AA5EBCDA4.png"
  53. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66\Thumbnails" /v "Url32x32" /t REG_SZ /d "http://k31.kn3.net/022B096E1.png"
  54. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66\Thumbnails" /v "Url24x24" /t REG_SZ /d "http://k35.kn3.net/397FB33CC.png"
  55. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66\Thumbnails" /v "Url20x20" /t REG_SZ /d "http://k35.kn3.net/397FB33CC.png"
  56. reg add "HKCU\Software\Microsoft\Office\Common\Cloud Storage\ecc30fd0-4546-11e2-bcfd-0800200c9a66\Thumbnails" /v "Url16x16" /t REG_SZ /d "http://k43.kn3.net/E5162FC3D.png"
  57.  
  58. goto end
  59.  
  60. :ver_Vista
  61. :Run Windows Vista specific commands here
  62. REM echo This script does not support Windows Vista
  63. goto end
  64.  
  65. :ver_2003
  66. :Run Windows Server 2003 specific commands here
  67. REM echo This script does not support Windows Server 2003
  68. goto end
  69.  
  70. :ver_XP
  71. :Run Windows XP specific commands here
  72. REM echo This script does not support Windows XP
  73. goto end
  74.  
  75. :ver_2000
  76. :Run Windows 2000 specific commands here
  77. REM echo This script does not support Windows 2000
  78. goto end
  79.  
  80. :warn_and_exit
  81. echo Machine OS cannot be determined.
  82.  
  83. :end
  84. ECHO The script is finished!
  85. ECHO If you don't see any errors, you can close this window.
  86. ECHO Any error messages can be posted on https://forums.dropbox.com/topic.php?id=93098
  87. ECHO Original Script created by Philip P. from Dropbox, Remastered by RedeyeGT
  88. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement