List Directory Contents to Text File

aL BeasTie

Well-known member
A quick old DOS trick for those chars/animations that have a ton of sprites.    :)

Simply we will create a simple batch file that adds all the names of image files into file called CHAR.TXT


STEPS
- navigate to the folder with your sprites

- create a new text file

- paste this into it

Code:
dir *.png /b /o /a > char.txt

- Save and RENAME the file to CHARS.BAT

- Run the new batch file. (Double Click it)


You'll get a file that looks something like this.  :D


Code:
00.png
01.png
02.png
03.png
04.png
05.png
06.png
07.png
08.png
09.png
10.png
11.png
12.png
13.png
14.png
15.png
16.png
17.png
18.png
19.png
20.png
21.png
22.png
23.png
24.png
25.png
26.png
27.png
28.png
29.png
30.png
31.png
32.png
33.png
34.png
35.png
36.png
37.png
38.png

for .gif simply change the file type in the code (thou you should be using PNG!!!)
Code:
dir *.png /b /o /a > char.txt



TRICK #2 - OPENBOR

Open the file in NotePad++

Use the macro setting to add code on the fly.

macro.png



------

TRICK #3 - MUGEN

Change the batch file to list everything, useful for listing folders of MUGEN chars or stages to insert into select.def

CHARS (run from chars folder
Code:
dir /b /o /a > chars.txt

STAGES (run from stages folder)
Code:
dir *.def /b /o /a > chars.txt


Code:
AIRPORT.DEF
AIRPORT2.DEF
brazil2k1.def
cambodia2k2.def
china2k1.def
china2k2.def
china2k2_2.def
china2k2_3.def
china2k2_4.def
chinatown.def
chinatown2.DEF
construct.def
construct2.def
construct2-sff.def
construct-sff.def
dino99.def
DOJO98.DEF
Egypt.def
Egypt2.def
factory.def
Frozenfactory.def
FrozenHarbour.def
Harbour.def
holland2k2.def
holland2k2_2.def
igniz2k1.def
italy2k1.def
Italy2k2.def
italy2k2_2.def
italy2k2_3.def
JAP98.DEF
JAP98C.DEF
japan2k1.def
japan2k2.def
japan2k2_2.def
japan2k2_3.def
kf2k3_bleed.def
kf2k3_bleed2.def



ENJOY!!

P.S - OpenBOR stats can import images directly, but some prefer to still just text edit, so this trick is handy.  ;)
 
Back
Top Bottom