4cade/bin/padto.js

6 lines
255 B
JavaScript
Raw Normal View History

2019-01-07 18:22:55 -08:00
a = new ActiveXObject("scripting.filesystemobject")
b = a.opentextfile(WScript.Arguments(1))
2021-10-22 07:12:57 -07:00
c = b.readall().replace(/\r\n/g, "\n")
2019-01-07 18:22:55 -08:00
b.close()
2021-10-18 18:31:55 -07:00
a.createtextfile(WScript.Arguments(1)).write(String(c + Array(512).join(String.fromCharCode(0))).substr(0, 512))