07-01-2004, 01:23 AM
I am working on a project where I need to list all file names in a directory with the same extension. The list can either be in an array or a text file to be used by the program.
List of file names
|
07-01-2004, 01:23 AM
I am working on a project where I need to list all file names in a directory with the same extension. The list can either be in an array or a text file to be used by the program.
07-01-2004, 01:25 AM
And you're telling us this because?
... ... ... Oh, you need help
07-01-2004, 02:26 AM
Look up: Int 21h AH=4E and Int 21h AH=4F.
That's what you need if you wish to run without external files. If you want external files, you could do something like: Code: OPEN "SHOW.BAT" FOR OUTPUT AS #1
07-02-2004, 07:21 AM
Neo,
Why do I need to do the DIR via a batchfile? Why can't I just do: SHELL "DIR *.EXE/B > MYFILEE.DAT" Depending on the operating system you might have to: SHELL "CMD DIR *.EXE/B > MYFILEE.DAT" The /B is for bare output --- filename only. I'm sure you don't need all the other information. PS: Watch out: since you're probably running a Windows machine, there is a remote posibility that you might have some Windows filenames in the subject directory. Example: If you have a file called CHACHACHA.EXEL in the directory, all the above DIRs will find and use it because it has .EXE in it. *****
07-02-2004, 08:33 AM
Quote:And you're telling us this because? That post was about as pointless as this one pointing out that fact.
ovaProgramming.
One night I had a dream where I was breaking balls. The next morning, BALLSBREAKER was born. Quote: Excellent. Now you can have things without paying for them. BALLSBREAKER 2 ~-_-Status Report-_-~ Engine: 94% Graphics: 95% Sound: 100% A Severe Error has crippled BB2 for the time being... I have to figure it out, but until then you won't see much of it . -----------------------------
07-02-2004, 01:27 PM
Then why did you post?
|
« Next Oldest | Next Newest »
|