Sign in to follow this  
hoihoi8

Extracting the file name text from a large group of files

Recommended Posts

hoihoi8    122
I have a folder and subfolders of 3000+ files used for a game. For the platform, I need to write a line of code to load each indiviual file. Example <link href="sounds/badMove_1.mpg"> I have to write 1 line of code like this for each file (don't ask why, I know this sounds like a POS platform, CAUSE IT IS :) ) What general direction should i take to extract the text file name from the 3000 files, so I don't have to type out each file name. I am on XP and have access to MS Office if there is a trick using those. Thanks, Josh

Share this post


Link to post
Share on other sites
TheTroll    883
Go and download Visual Basic Express from Microsoft.

Once you have it, look up on the internet about reading directories.

There will even be code examples.

Should be really easy.

You can not do it using Office. Well not that I know of.

theTroll

Share this post


Link to post
Share on other sites
Zahlman    1682
Quote:
Original post by Ultimape
dir /b /s >> filelist.txt

then some artful use of find and replace on filelist.txt


This time you have the right idea for sure. :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this