mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-05 18:06:52 +00:00
13 lines
641 B
JavaScript
13 lines
641 B
JavaScript
a = new ActiveXObject("scripting.filesystemobject")
|
|
fileinfo = "# This file is automatically generated\r\n"
|
|
|
|
for (b = new Enumerator(a.GetFolder(WScript.Arguments(0)).files); !b.atEnd(); b.moveNext())
|
|
{
|
|
if (b.item().Name.toUpperCase() != "_FILEINFORMATION.TXT")
|
|
{
|
|
fileinfo += "\r\n" + b.item().Name.toUpperCase() + "=Type(" + WScript.Arguments(1) + "),AuxType(" + WScript.Arguments(2) + "),Access(C3)"
|
|
}
|
|
}
|
|
fileinfo += "\r\n" + "_FileInformation.txt=Type(" + WScript.Arguments(1) + "),AuxType(" + WScript.Arguments(2) + "),Access(C3)\r\n"
|
|
a.createtextfile(WScript.Arguments(0)+"\\_FileInformation.txt", 1).write(fileinfo)
|