I need to go through each folder in a path and install fonts

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Alpha_AI
Pro Scripter
Posts: 61
Joined: Wed Sep 19, 2007 9:30 am

I need to go through each folder in a path and install fonts

Post by Alpha_AI » Sat Nov 17, 2007 5:00 am

Hello,

I bought some fonts recently and when I extract it i see that the fonts are inside folders and there are possibly hundreds of folders.
I would to know how to go through each folder and open each one up

i know i can use ChangeDirectory to open into a directory but i dont know how to get the list of the directories.

Alpha_AI
Pro Scripter
Posts: 61
Joined: Wed Sep 19, 2007 9:30 am

Post by Alpha_AI » Sat Nov 17, 2007 5:01 am

basically a folder for each font.

Ben

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Sat Nov 17, 2007 6:23 am

Why do you want to open up each folder?

What are you trying to do?

Just need a list of all fonts in all directories? In what format?
Need to copy/Move from Dir A to Dir B?
Need to make decisions base on filename, filedate, filesize, etc.

Can help you better if you describe more fully what you are trying to do.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Alpha_AI
Pro Scripter
Posts: 61
Joined: Wed Sep 19, 2007 9:30 am

Post by Alpha_AI » Sat Nov 17, 2007 8:00 am

Well the font pack has 100s of fonts and each font is installed
in their own directory and directories name matches the font name. These folders are all contained inside a rar file.
I could extract the folders and could open each directory, see each font and right click it and install it but it would take to long. So basically i want to be able to install the fonts automatically
without me opening each folder.

Ben

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Sat Nov 17, 2007 9:04 am

Have Macro Scheduler unzip the archive and then for each folder use GetFileList to get a list of files in each folder. Iterate through each file list and for each file do ExecuteFile to install the font.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts