2020-04-03 00:10:33 +00:00
|
|
|
a = new ActiveXObject("scripting.filesystemobject")
|
|
|
|
b = WScript.Arguments(0).lastIndexOf('\\') + 1
|
|
|
|
c = WScript.Arguments(0).substr(0, b)
|
|
|
|
d = WScript.Arguments(0).substr(b)
|
|
|
|
if (d.substr(0, 2) == '*.')
|
|
|
|
{
|
|
|
|
d = d.substr(2)
|
|
|
|
}
|
|
|
|
for (b = new Enumerator(a.GetFolder(c).files); !b.atEnd(); b.moveNext())
|
|
|
|
{
|
2020-04-05 19:37:13 +00:00
|
|
|
if ((d == '*') || (d == b.item().name) || (d == a.getextensionname(b.item().name)))
|
2020-04-03 00:10:33 +00:00
|
|
|
{
|
|
|
|
e = a.opentextfile(c + b.item().name).readall()
|
|
|
|
e = e.replace(/\r\n/g, "\n")
|
|
|
|
a.createtextfile(c + b.item().name).write(e)
|
|
|
|
}
|
|
|
|
}
|