2018-10-31 05:59:03 +00:00
|
|
|
a = new ActiveXObject("scripting.filesystemobject")
|
2020-04-02 05:34:29 +00:00
|
|
|
fileinfo = "# This file is automatically generated\r\n"
|
|
|
|
|
2018-10-31 05:59:03 +00:00
|
|
|
for (b = new Enumerator(a.GetFolder(WScript.Arguments(0)).files); !b.atEnd(); b.moveNext())
|
|
|
|
{
|
2020-03-13 01:29:15 +00:00
|
|
|
if (b.item().Name.toUpperCase() != "_FILEINFORMATION.TXT")
|
|
|
|
{
|
|
|
|
fileinfo += "\r\n" + b.item().Name.toUpperCase() + "=Type(" + WScript.Arguments(1) + "),AuxType(" + WScript.Arguments(2) + "),Access(C3)"
|
|
|
|
}
|
2018-10-31 05:59:03 +00:00
|
|
|
}
|
2020-03-13 01:29:15 +00:00
|
|
|
fileinfo += "\r\n" + "_FileInformation.txt=Type(" + WScript.Arguments(1) + "),AuxType(" + WScript.Arguments(2) + "),Access(C3)\r\n"
|
2020-04-02 05:34:29 +00:00
|
|
|
a.createtextfile(WScript.Arguments(0)+"\\_FILEINFORMATION.TXT", 1).write(fileinfo)
|