4cade/bin/buildsearch.js

14 lines
420 B
JavaScript
Raw Normal View History

2021-10-24 02:17:36 +00:00
a = new ActiveXObject("scripting.filesystemobject")
x = new ActiveXObject("wscript.shell")
b = x.exec('findstr /b \"' + WScript.Arguments(0) + '\" build\\DISPLAY.CONF')
c = a.createtextfile("build\\search.txt")
while (!b.stdout.atendofstream)
{
d = b.stdout.readline()
c.writeline(d.substr(d.indexOf(",") + 1))
}
c.close()
x.run('cscript /nologo bin\\buildokvs.js build\\search.txt ' + WScript.Arguments(1), 0, 1)