Fonts are to be copied into the Windows font folder with a vb script. The fonts are copied with the little script below. The script copys from folder with font-files into Windows Font folder and stops at each box and waits for the event to be clicked. How can this box event be confirmed by script. The solution should look like this: All font files should be copied, overwritten or pasted into the Windows font folder.
Regards Stefan
Const FONTS = &H14&
Set shell = CreateObject("Shell.Application")
Set wshShell = CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
Set fontsFolder = shell.Namespace(FONTS)
scriptFullName = WScript.ScriptFullName
Set currentFolder = fso.GetFolder (fso.GetParentFolderName(scriptFullName))
For Each file In currentFolder.Files
If fso.GetExtensionName(file.Name) = "ttf" Then
WScript.Echo "Installing font: " & file.Path
fontsFolder.CopyHere file.Path
End If
Next