4cade/bin/buildsearch.js
Peter Ferrie 47ed1d6dd4 sync
2021-10-23 19:17:36 -07:00

14 lines
420 B
JavaScript

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)