Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Const FONTS = &H14&
- sFolder = "c:FontInstalls"
- Set objShell = CreateObject("Shell.Application")
- Set objFolder = objShell.Namespace(FONTS)
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- For Each oFile In objFSO.GetFolder(sFolder).Files
- If UCase(objFSO.GetExtensionName(oFile.Name)) = "TTF" Then
- objFolder.CopyHere(oFile)
- wscript.echo(oFile)
- End if
- Next
- Set objShell = CreateObject("Shell.Application")
- Set Ag=Wscript.Arguments
- set WshShell = WScript.CreateObject("WScript.Shell")
- Set SrcFldr=objShell.NameSpace(Ag(1))
- Set DestFldr=objShell.NameSpace(Ag(0))
- Set FldrItems=SrcFldr.Items
- DestFldr.CopyHere FldrItems, &H214
- Msgbox "Finished"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement