From 969902a4a5a6349323264bffa380e4352c95addc Mon Sep 17 00:00:00 2001 From: Peter Ferrie Date: Thu, 12 Mar 2020 18:29:15 -0700 Subject: [PATCH] sync --- bin/buildfileinfo.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/buildfileinfo.js b/bin/buildfileinfo.js index f878e4aac..9a3509cbb 100644 --- a/bin/buildfileinfo.js +++ b/bin/buildfileinfo.js @@ -2,6 +2,10 @@ a = new ActiveXObject("scripting.filesystemobject") fileinfo = "" for (b = new Enumerator(a.GetFolder(WScript.Arguments(0)).files); !b.atEnd(); b.moveNext()) { - fileinfo += "\r\n" + b.item().Name.toUpperCase() + "=Type(" + WScript.Arguments(1) + "),AuxType(" + WScript.Arguments(2) + "),Access(C3)" + if (b.item().Name.toUpperCase() != "_FILEINFORMATION.TXT") + { + 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)) +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.substring(2))