Advertisement
Guest User

User_folders

a guest
Dec 7th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.95 KB | None | 0 0
  1. @echo off
  2.  
  3. set user=%USERNAME%
  4.  
  5. call "%~dp0log" %~nx0: ==============================================
  6. call "%~dp0log" %~nx0: Konfiguracja folderow uzytkownika %user%
  7. call "%~dp0log" %~nx0: ==============================================
  8.  
  9. echo ==============================================
  10. echo Konfiguracja folderow uzytkownika %user%
  11. echo ==============================================
  12.  
  13. taskkill /f /im explorer.exe | "%~dp0log" /fifo %~nx0: 2>nul
  14. timeout /t 2 /nobreak >nul
  15. call "%~dp0log" %~nx0: D:\Pobrane
  16. echo D:\Pobrane
  17. if not exist "D:\Pobrane" mkdir "D:\Pobrane" | "%~dp0log" /fifo %~nx0: 2>nul
  18. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "{374DE290-123F-4565-9164-39C4925E467B}" /t REG_SZ /d "D:\Pobrane" /f | "%~dp0log" /fifo %~nx0: 2>nul
  19. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "{374DE290-123F-4565-9164-39C4925E467B}" /t REG_EXPAND_SZ /d "D:\Pobrane" /f | "%~dp0log" /fifo %~nx0: 2>nul
  20. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "{7D83EE9B-2244-4E70-B1F5-5393042AF1E4}" /t REG_EXPAND_SZ /d "D:\Pobrane" /f | "%~dp0log" /fifo %~nx0: 2>nul
  21. attrib +r -s -h "D:\Pobrane" /S /D | "%~dp0log" /fifo %~nx0: 2>nul
  22.  
  23. call "%~dp0log" %~nx0: D:\%user%\Kontakty
  24. echo D:\%user%\Kontakty
  25. if not exist "D:\%user%\Kontakty" mkdir "D:\%user%\Kontakty" | "%~dp0log" /fifo %~nx0: 2>nul
  26. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "{56784854-C6CB-462B-8169-88E350ACB882}" /t REG_SZ /d "D:\%user%\Kontakty" /f | "%~dp0log" /fifo %~nx0: 2>nul
  27. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "{56784854-C6CB-462B-8169-88E350ACB882}" /t REG_EXPAND_SZ /d "D:\%user%\Kontakty" /f | "%~dp0log" /fifo %~nx0: 2>nul | "%~dp0log" /fifo %~nx0: 2>nul
  28. attrib +r -s -h "D:\%user%\Kontakty" /S /D | "%~dp0log" /fifo %~nx0: 2>nul
  29.  
  30. rem call "%~dp0log" %~nx0: D:\%user%\Pulpit
  31. rem echo D:\%user%\Pulpit
  32. rem if not exist "D:\%user%\Pulpit" mkdir "D:\%user%\Pulpit" | "%~dp0log" /fifo %~nx0: 2>nul
  33. rem reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Desktop" /t REG_SZ /d "D:\%user%\Pulpit" /f | "%~dp0log" /fifo %~nx0: 2>nul
  34. rem reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Desktop" /t REG_EXPAND_SZ /d "D:\%user%\Pulpit" /f | "%~dp0log" /fifo %~nx0: 2>nul
  35. rem attrib +r -s -h "D:\%user%\Pulpit" /S /D | "%~dp0log" /fifo %~nx0: 2>nul
  36.  
  37. call "%~dp0log" %~nx0: D:\%user%\Dokumenty
  38. echo D:\%user%\Dokumenty
  39. if not exist "D:\%user%\Dokumenty" mkdir "D:\%user%\Dokumenty" | "%~dp0log" /fifo %~nx0: 2>nul
  40. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Personal" /t REG_SZ /d "D:\%user%\Dokumenty" /f | "%~dp0log" /fifo %~nx0: 2>nul
  41. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "{f42ee2d3-909f-4907-8871-4c22fc0bf756}" /t REG_EXPAND_SZ /d "D:\%user%\Dokumenty" /f | "%~dp0log" /fifo %~nx0: 2>nul
  42. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Personal" /t REG_EXPAND_SZ /d "D:\%user%\Dokumenty" /f | "%~dp0log" /fifo %~nx0: 2>nul
  43. attrib +r -s -h "D:\%user%\Dokumenty" /S /D | "%~dp0log" /fifo %~nx0: 2>nul
  44.  
  45. call "%~dp0log" %~nx0: D:\%user%\Ulubione
  46. echo D:\%user%\Ulubione
  47. if not exist "D:\%user%\Linki" mkdir "D:\%user%\Ulubione" | "%~dp0log" /fifo %~nx0: 2>nul
  48. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Favorites" /t REG_SZ /d "D:\%user%\Ulubione" /f | "%~dp0log" /fifo %~nx0: 2>nul
  49. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Favorites" /t REG_EXPAND_SZ /d "D:\%user%\Ulubione" /f | "%~dp0log" /fifo %~nx0: 2>nul
  50. attrib +r -s -h "D:\%user%\Ulubione" /S /D | "%~dp0log" /fifo %~nx0: 2>nul
  51.  
  52. call "%~dp0log" %~nx0: D:\%user%\Linki
  53. echo D:\%user%\Linki
  54. if not exist "D:\%user%\Linki" mkdir "D:\%user%\Linki" | "%~dp0log" /fifo %~nx0: 2>nul
  55. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "{BFB9D5E0-C6A9-404C-B2B2-AE6DB6AF4968}" /t REG_SZ /d "D:\%user%\Linki" /f | "%~dp0log" /fifo %~nx0: 2>nul
  56. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "{BFB9D5E0-C6A9-404C-B2B2-AE6DB6AF4968}" /t REG_EXPAND_SZ /d "D:\%user%\Linki" /f | "%~dp0log" /fifo %~nx0: 2>nul
  57. attrib +r -s -h "D:\%user%\Linki" /S /D | "%~dp0log" /fifo %~nx0: 2>nul
  58.  
  59. call "%~dp0log" %~nx0: D:\%user%\Muzyka
  60. echo D:\%user%\Muzyka
  61. if not exist "D:\%user%\Muzyka" mkdir "D:\%user%\Muzyka" | "%~dp0log" /fifo %~nx0: 2>nul
  62. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "My Music" /t REG_SZ /d "D:\%user%\Muzyka" /f | "%~dp0log" /fifo %~nx0: 2>nul
  63. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "{A0C69A99-21C8-4671-8703-7934162FCF1D}" /t REG_EXPAND_SZ /d "D:\%user%\Muzyka" /f | "%~dp0log" /fifo %~nx0: 2>nul
  64. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "My Music" /t REG_EXPAND_SZ /d "D:\%user%\Muzyka" /f | "%~dp0log" /fifo %~nx0: 2>nul
  65. attrib +r -s -h "D:\%user%\Muzyka" /S /D | "%~dp0log" /fifo %~nx0: 2>nul
  66.  
  67. call "%~dp0log" %~nx0: D:\%user%\Grafika
  68. echo D:\%user%\Grafika
  69. if not exist "D:\%user%\Muzyka" mkdir "D:\%user%\Muzyka" | "%~dp0log" /fifo %~nx0: 2>nul
  70. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "My Pictures" /t REG_SZ /d "D:\%user%\Grafika" /f | "%~dp0log" /fifo %~nx0: 2>nul
  71. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "{0DDD015D-B06C-45D5-8C4C-F59713854639}" /t REG_EXPAND_SZ /d "D:\%user%\Grafika" /f | "%~dp0log" /fifo %~nx0: 2>nul
  72. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "My Pictures" /t REG_EXPAND_SZ /d "D:\%user%\Grafika" /f | "%~dp0log" /fifo %~nx0: 2>nul
  73. attrib +r -s -h "D:\%user%\Grafika" /S /D | "%~dp0log" /fifo %~nx0: 2>nul
  74.  
  75. call "%~dp0log" %~nx0: D:\%user%\Zapisane\Gry
  76. echo D:\%user%\Zapisane\Gry
  77. if not exist "D:\%user%\Zapisane\Gry" mkdir "D:\%user%\Zapisane\Gry" | "%~dp0log" /fifo %~nx0: 2>nul
  78. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "{4C5C32FF-BB9D-43B0-B5B4-2D72E54EAAA4}" /t REG_SZ /d "D:\%user%\Zapisane\Gry" /f | "%~dp0log" /fifo %~nx0: 2>nul
  79. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "{4C5C32FF-BB9D-43B0-B5B4-2D72E54EAAA4}" /t REG_EXPAND_SZ /d "D:\%user%\Zapisane\Gry" /f | "%~dp0log" /fifo %~nx0: 2>nul
  80. attrib +r -s -h "D:\%user%\Zapisane\Gry" /S /D | "%~dp0log" /fifo %~nx0: 2>nul
  81.  
  82. call "%~dp0log" %~nx0: D:\%user%\Poszukiwania
  83. echo D:\%user%\Poszukiwania
  84. if not exist "D:\%user%\Poszukiwania" mkdir "D:\%user%\Poszukiwania" | "%~dp0log" /fifo %~nx0: 2>nul
  85. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "{7D1D3A04-DEBB-4115-95CF-2F29DA2920DA}" /t REG_SZ /d "D:\%user%\Poszukiwania" /f | "%~dp0log" /fifo %~nx0: 2>nul
  86. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "{7D1D3A04-DEBB-4115-95CF-2F29DA2920DA}" /t REG_EXPAND_SZ /d "D:\%user%\Poszukiwania" /f | "%~dp0log" /fifo %~nx0: 2>nul
  87. attrib +r -s -h "D:\%user%\Poszukiwania" /S /D | "%~dp0log" /fifo %~nx0: 2>nul
  88.  
  89. call "%~dp0log" %~nx0: D:\%user%\Video
  90. echo D:\%user%\Video
  91. if not exist "D:\%user%\Video" mkdir "D:\%user%\Video" | "%~dp0log" /fifo %~nx0: 2>nul
  92. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "My Video" /t REG_SZ /d "D:\%user%\Video" /f | "%~dp0log" /fifo %~nx0: 2>nul
  93. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "{35286A68-3C57-41A1-BBB1-0EAE73D76C95}" /t REG_EXPAND_SZ /d "D:\%user%\Video" /f | "%~dp0log" /fifo %~nx0: 2>nul
  94. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "My Video" /t REG_EXPAND_SZ /d "D:\%user%\Video" /f | "%~dp0log" /fifo %~nx0: 2>nul
  95. attrib +r -s -h "D:\%user%\Video" /S /D | "%~dp0log" /fifo %~nx0: 2>nul
  96.  
  97. timeout /t 1 /nobreak >nul
  98. start C:\Windows\explorer.exe
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement