Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. Const FONTS = &H14&
  2. sFolder = "c:FontInstalls"
  3. Set objShell = CreateObject("Shell.Application")
  4. Set objFolder = objShell.Namespace(FONTS)
  5. Set objFSO = CreateObject("Scripting.FileSystemObject")
  6.  
  7. For Each oFile In objFSO.GetFolder(sFolder).Files
  8. If UCase(objFSO.GetExtensionName(oFile.Name)) = "TTF" Then
  9. objFolder.CopyHere(oFile)
  10. wscript.echo(oFile)
  11. End if
  12. Next
  13.  
  14. Set objShell = CreateObject("Shell.Application")
  15. Set Ag=Wscript.Arguments
  16. set WshShell = WScript.CreateObject("WScript.Shell")
  17.  
  18. Set SrcFldr=objShell.NameSpace(Ag(1))
  19. Set DestFldr=objShell.NameSpace(Ag(0))
  20. Set FldrItems=SrcFldr.Items
  21. DestFldr.CopyHere FldrItems, &H214
  22. Msgbox "Finished"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement