Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 using system commands to import a font into the C:\Windows\Fonts
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Sharkbait




PostPosted: Fri May 01, 2009 1:48 pm   Post subject: using system commands to import a font into the C:\Windows\Fonts

since my program is supposed to run on the school computers, it has to load the font every time it starts up basically.

var ret : int
system ("G:",ret) %school drive
system ("cd\Fonts",ret) %folder in my drive
system ("copy pulserifle.ttf C:\Windows\Fonts",ret) %copy the font and move it to the windows font file.

is what i have so far, and i've tried it with copying it first then moving it to the folder but that to has failed.

Is there a command to get the computer to install the font just as it does if you manually copy paste it?, any help will be very helpful.
Sponsor
Sponsor
Sponsor
sponsor
Euphoracle




PostPosted: Fri May 01, 2009 3:04 pm   Post subject: RE:using system commands to import a font into the C:\Windows\Fonts

Use one of microsoft's programs

code:
xcopy G:\Fonts\* C:\Windows\Fonts\


or whatever the syntax is. Turing isn't want you want to use for these kinds of tasks.
BigBear




PostPosted: Fri May 01, 2009 4:08 pm   Post subject: RE:using system commands to import a font into the C:\Windows\Fonts

so through turing right now you only have defFontID?
Sharkbait




PostPosted: Sat May 02, 2009 3:43 pm   Post subject: Re: using system commands to import a font into the C:\Windows\Fonts

thanks for the suggestions, i just made a vb script to install the fonts instead.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: