mirror of
https://github.com/a2-4am/4cade.git
synced 2024-12-29 10:33:08 +00:00
15 lines
445 B
JavaScript
15 lines
445 B
JavaScript
a = new ActiveXObject("scripting.filesystemobject")
|
|
|
|
if (WScript.Arguments(1) == "build\\PREFS.CONF")
|
|
{
|
|
b = a.opentextfile(WScript.Arguments(1))
|
|
c = b.readall().replace(/\r\n/g, "\n")
|
|
b.close()
|
|
b = a.createtextfile(WScript.Arguments(1))
|
|
b.write(c)
|
|
b.close()
|
|
}
|
|
|
|
c = a.getfile(WScript.Arguments(1)).size
|
|
b = a.opentextfile(WScript.Arguments(1), 8).write(Array((Math.floor((c + 511) / 512) * 512) - c + 1).join(String.fromCharCode(0)))
|