1
0
mirror of https://github.com/a2-4am/4cade.git synced 2024-12-30 02:32:27 +00:00
4cade/bin/buildfileinfo.js

8 lines
400 B
JavaScript
Raw Normal View History

a = new ActiveXObject("scripting.filesystemobject")
fileinfo = ""
for (b = new Enumerator(a.GetFolder(WScript.Arguments(0)).files); !b.atEnd(); b.moveNext())
{
2019-01-03 21:57:01 +00:00
fileinfo += "\r\n" + b.item().Name.toUpperCase() + "=Type(" + WScript.Arguments(1) + "),AuxType(" + WScript.Arguments(2) + "),Access(C3)"
}
a.createtextfile(WScript.Arguments(0)+"\\_FileInformation.txt", 1).write(fileinfo.substring(2))