Filelist.vbs

This little utility is used to generate a list of files in a directory in a makefile compatible format.

It's called as vbs script via

cscript filelist.vbs directory_to_scan Prefix1 fileext1 [Prefix2 fileext2] > outputfile.txt

But let's take an example - having a directory content like this

script1.lua
spec1.mdx
spec2.mdx
script2.lua
spec3.mdx
somethingelse.foo

then the call

cscript filelist.vbs . "SOURCES=" lua "SPECS=" mdx >output.txt

would generate the following file output text:

SOURCES= script1.lua script2.lua
SPECS= spec1.mdx spec2.mdx spec3.mdx

where this output file can than easily included in e.g. makefiles