mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-18 11:08:26 +00:00
14 lines
420 B
JavaScript
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)
|