코드
2018.07.16 07:21

폰트를 자동 설치하는 코드

조회 수 834 추천 수 0 댓글 1
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
Extra Form
라이선스 GPL v2

VBS 스크립트입니다.


Call InstallFont("C:\폰트.ttf")
Sub InstallFont(FontPath) 
    Dim WshShell 
    Set WshShell = WScript.CreateObject("WScript.Shell") 

    Const FONTS = &H14& 
    Set objShell = CreateObject("Shell.Application") 
    Set objFolder = objShell.Namespace(FONTS) 

    objFolder.CopyHere FontPath
End Sub






PPT에 폰트를 포함했는데, 읽기전용으로 사용은 힘들고, 폰트 설치하는 화면을 보여주기에는 상황이 여의치 않을때 사용하기에 좋습니다.

저런 상황에서는 이렇게 사용하시면 됩니다.


Call InstallFont("파워포인트\폰트.ttf")

Dim objShell
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run("explorer 파워포인트\파워포인트.pptx")

WScript.Quit 

Sub InstallFont(FontPath) 
    Dim WshShell 
    Set WshShell = WScript.CreateObject("WScript.Shell") 

    Const FONTS = &H14& 
    Set objShell = CreateObject("Shell.Application") 
    Set objFolder = objShell.Namespace(FONTS) 

    objFolder.CopyHere WshShell.CurrentDirectory & "\" & FontPath
End Sub


이렇게 실행.vbs 같은 이름으로 저장하고, 파워포인트라는 폴더를 생성해 그 안에 폰트파일과 PPT 파일을 저장하면 됩니다.

물론 생성한 폴더와 VBS 파일은 같은 경로에 있어야 하구요.







  1. 사이트 서버 이전 (또는 미러링 사이트 구축) 쉽게하는 스크립트

    Date2018.01.14 Category코드 ByNoYeah Views858
    Read More
  2. 유튜브에 약간의 기능을 추가 해주는 크롬 확장 프로그램.

    Date2018.01.26 Category코드 ByHanam09 Views942
    Read More
  3. 컴퓨터의 uuid 얻기

    Date2018.01.28 Category코드 Bytitle: 황금 서버 (30일)humit Views1099
    Read More
  4. CMD로 로컬 연결 고정 IP 설정하기

    Date2018.02.06 Category코드 Bytitle: 황금 서버 (30일)humit Views1038
    Read More
  5. Cmd 에서 서비스 시작 / 종료하기

    Date2018.02.18 Category코드 ByProjectSE Views644
    Read More
  6. 미완성 받아쓰기 (C)

    Date2018.04.20 Category코드 Bytitle: 대한민국 국기gimmepoint Views380
    Read More
  7. 아주 간단한 기초 C++

    Date2018.04.21 Category코드 By제르엘 Views477
    Read More
  8. Hello, World!를 출력해보자

    Date2018.04.21 Category코드 By네모 Views568
    Read More
  9. html 초보가 만든 자소서

    Date2018.04.21 Category코드 Bytitle: 대한민국 국기gimmepoint Views661
    Read More
  10. c 이진트리 전,중,후위 알고리즘

    Date2018.04.24 Category코드 Bytitle: 대한민국 국기gimmepoint Views495
    Read More
  11. HEX를 RGB로, RGB를 HEX로 바꾸는 PHP 코드

    Date2018.05.05 Category코드 By네모 Views507
    Read More
  12. 클라이언트단에서 이미지 리사이징

    Date2018.05.06 Category코드 By네모 Views1078
    Read More
  13. 내가 만든 함수 모음집

    Date2018.05.08 Category코드 Bytitle: 대한민국 국기gimmepoint Views382
    Read More
  14. 내가 만든 사칙연산 계산기

    Date2018.05.11 Category코드 Bytitle: 대한민국 국기gimmepoint Views515
    Read More
  15. 내가 만든 함수 모음집 2

    Date2018.05.12 Category코드 Bytitle: 대한민국 국기gimmepoint Views379
    Read More
  16. 내가 만든 merge sort

    Date2018.05.17 Bytitle: 대한민국 국기gimmepoint Views370
    Read More
  17. 매우 특이한 버그

    Date2018.06.05 Category코드 Bytitle: 대한민국 국기gimmepoint Views569
    Read More
  18. 잘못 쓰면 컴퓨터가 날아가는 코드

    Date2018.07.08 Category코드 By제르엘 Views964
    Read More
  19. 폰트를 자동 설치하는 코드

    Date2018.07.16 Category코드 By네모 Views834
    Read More
  20. C언어 삼중자를 이용한 코드

    Date2018.07.22 Category코드 Bytitle: 황금 서버 (30일)humit Views410
    Read More
Board Pagination Prev 1 2 3 4 Next
/ 4