Advertisement
Combreal

InstallFonts

Feb 28th, 2018 (edited)
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. setlocal
  3.  
  4. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  5. :: Installe la nouvelle police d'ecriture DBS                     ::
  6. :: Auteur : M. Conio, 2018-02-26                                  ::
  7. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  8.  
  9. net use M: \\partage\semir\public\Fonts-Dbs
  10. xcopy /r /i \\partage\semir\public\Fonts-Dbs%WINDIR%\Fonts /Y /C
  11. xcopy /r /i \\public\Fonts-DBS C:\Temp\Fonts /Y /C
  12.  
  13. for /R "C:\Temp\Fonts" %%f in (*.ttf) do reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "%%~nf (TrueType)" /t REG_SZ /d %%~nf.ttf /f & reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Fonts" /v "%%~nf (TrueType)" /t REG_SZ /d %%~nf.ttf /f
  14. del /A /F /Q "C:\Temp\Fonts"
  15. rmdir "C:\Temp\Fonts"
  16.  
  17. net stop FontCache
  18. del /A /F /Q "%WinDir%\ServiceProfiles\LocalService\AppData\Local\FontCache\*FontCache*"
  19. del /A /F /Q "%WinDir%\System32\FNTCACHE.DAT"
  20. net start FontCache
  21.  
  22. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement