Results 1 to 2 of 2

Thread: Deleting and replacing files

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Location
    Phoenix
    Posts
    1

    Arrow

    I'm interested in writing a small vb app to be distributed with a file containing font updates. Essentially, I want to go into the c:windows\fonts folder, find all fonts containing a string (ex: bondo), delete them and replace them with the current fonts in the folder attached to the app. It has to be a one button kind of deal, since I'm dealing with salespeople and other field types who apparently can't just download and replace the damned things. BTW, the program has to work even if there aren't any of the font types ob the machine.

    I really appreciate any and all responses and thank you all in advance. I trust the challenge is nothing you folks haven't scoffed at before.

    Bill Staley
    You'll Pay to Know what You Really Think.

  2. #2
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Umm...i'm not 100% sure, but i think you can just add the new fonts to the folder and if there are other fonts with the same name in there they will be replaced. So basicly just use the copy code to copy the fonts in the app directory to the font directory.
    Code:
    'i think it's
    FileCopy App.Path & "\font.font", "C:\Windows\Fonts\text.txt"
    Hope that helps,
    D!m


    [Edited by Dim on 07-29-2000 at 03:08 AM]
    Dim

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width