Guest User

usersyspin

a guest
Jul 14th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. @ECHO OFF
  2.  
  3.  
  4. ::Unpin all items from taskbar
  5. DEL /F /S /Q /A "%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\Taskbar\*"
  6. REG DELETE HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband /f
  7.  
  8.  
  9. :: Use SYSPIN located in C:\Windows\System32 for Taskbar pinning
  10. :: Pin = c:5386
  11. :: Unpin = c:5387
  12. IF EXIST "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" (
  13. syspin "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" c:5386
  14. ) ELSE (
  15. syspin "C:\Program Files\Mozilla Firefox\firefox.exe" c:5386
  16. )
  17. syspin "C:\Program Files (x86)\Internet Explorer\iexplore.exe" c:5386
  18. syspin "C:\Windows\explorer.exe" c:5386
  19.  
  20. ::Stop & restart Explorer
  21. taskkill /f /im explorer.exe
  22. start explorer.exe
Add Comment
Please, Sign In to add comment