tutakm.blogg.se

How to transfer fonts from pc to pc
How to transfer fonts from pc to pc







how to transfer fonts from pc to pc

However it is a solution.There's something magical about the fonts folder viewed through Windows Explorer. I cannot promise you how secure this is as in if they could use it to run elevated code. If it does not prompt you for a password run the shortcut from a cmd prompt it should prompt you then. I suppose you could use any administrator account for this.įirst time you run the shortcut you will be prompted for the administrator password. C:\Windows\System32\runas.exe /user:Administrator /savecred "wscript C:\PortableApps\InstallFonts\InstallFonts.vbs" Now create a shortcut on their desktop that is as follows. ' Lame VBscript needs 4 f*ing lines instead of "if (/\.ttf$/i) ". Set oWinFonts = objShell.Namespace(FONTS) Set oSource = objShell.Namespace(SourceFolder) Set objShell = CreateObject("Shell.Application") SourceFolder = "C:\Users\SomeUser\Desktop\Install Fonts" 'SourceFolder = ofso.GetParentFolderName(Wscript.ScriptFullName) Set ofso = CreateObject("Scripting.FileSystemObject") Then make the Appropriate "install Fonts" folder on their desktop. The idea is to run fontview.exe for each font, which makes it available for other Windows applications: for /F "delims= " %%a in ('dir C:\ExtraFonts /B /A-D-H-S /S') do fontview %%aĬreate a script file called InstallFonts.vbs in my case I put it in C:\PortableApps\InstallFonts\ IN the below code replace "SomeUser" with the username of the person you want to be able to install fonts. Yet another alternative is to install fonts "temporary", just for current user session. Set objFolderItem = objFolder.ParseName("Myriad Pro.ttf") Set objFolder = objShell.Namespace("C:\Windows\Font") Set objFolderItem = objFolder.ParseName("")Įxample: Set objShell = CreateObject("Shell.Application") Reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "FontName (TrueType)" /t REG_SZ /d FontName.ttf /fĪlternatively you can the following lines of code to suit your needs save it as a. Copying alone won't install the font: you also need to register the font, e.g.

how to transfer fonts from pc to pc

It's possible but you have to write a Windows shell script to do that.









How to transfer fonts from pc to pc